how to do aliasing in sh shell
|
|
0
|
|
|
|
Reply
|
googler
|
8/24/2004 3:44:01 PM |
|
On Tue, 24 Aug 2004, googler wrote:
> how to do aliasing in sh shell
The Bourne shell doesn't support aliasing, so you can't do it.
What you CAN do is use a Boune-like shell, which suppports
aliases, including ksh and bash.
HTH,
--
Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming",
published in August 2004.
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
|
|
0
|
|
|
|
Reply
|
Rich
|
8/24/2004 5:20:48 PM
|
|
"googler" <arun_ccjl@yahoo.co.in> writes:
> how to do aliasing in sh shell
Write a function instead of an alias.
Joe
--
If there is no solution, change the problem.
- William Park
|
|
0
|
|
|
|
Reply
|
joe
|
8/24/2004 7:47:16 PM
|
|
joe@invalid.address wrote:
> Write a function instead of an alias.
Thats another thing the Bourne shell is missing.
--
Torgny Lyon <torgny@enterprise.hb.se>
PGP Public Key: http://enterprise.hb.se/~torgny/pgpkey.asc
|
|
0
|
|
|
|
Reply
|
Torgny
|
8/24/2004 8:06:33 PM
|
|
Torgny Lyon wrote:
> joe@invalid.address wrote:
>
>>Write a function instead of an alias.
>
>
> Thats another thing the Bourne shell is missing.
>
The classic Bourne shell didn't have them, but the SysV Bourne shell did.
|
|
0
|
|
|
|
Reply
|
red
|
8/24/2004 8:08:42 PM
|
|
Torgny Lyon <torgny@enterprise.hb.se> writes:
> joe@invalid.address wrote:
> > Write a function instead of an alias.
>
> Thats another thing the Bourne shell is missing.
Really? What Bourne shell do you use that doesn't have functions?
Joe
--
If there is no solution, change the problem.
- William Park
|
|
0
|
|
|
|
Reply
|
joe
|
8/24/2004 8:15:52 PM
|
|
joe@invalid.address wrote:
> Really? What Bourne shell do you use that doesn't have functions?
Sorry, my mistake. Its the function keyword that is missing, not the
ability to define functions. I stand corrected.
--
Torgny Lyon <torgny@enterprise.hb.se>
PGP Public Key: http://enterprise.hb.se/~torgny/pgpkey.asc
|
|
0
|
|
|
|
Reply
|
Torgny
|
8/24/2004 9:52:19 PM
|
|