Korn Shell
aeusesef at csun.UUCP
aeusesef at csun.UUCP
Tue Mar 10 09:52:04 AEST 1987
In a previous article, I write:
Is there a way to pass parameters into aliases in Korn Shell? That is, in
Berkely, I would use something on the order of '!*';
Is there something equivalent for ksh?
Later, Guy Harris (guy%%gorodish at Sun.COM) writes:
Berkeley isn't a huge city; I presume that if you can use that piece of C
shell syntax within the city limits, you can use it outside the city
limits as well.
All right, everybody makes mistakes. I just happen to have made my first
one in a posting (8-)).
I think you meant "in the C shell"; not all systems that have the C
shell are primarily derived from code in BSD distributions of UNIX,
and not all people using systems so derived use the C shell.
The C shell uses aliases both to perform command aliasing and to
provide "built-in" shell scripts. The Bourne and Korn shells use
"shell functions" to do the latter.
Yes, that is true. My problem is that I would like to alias cd, which Korn
shell will allow me to do. Apparantly, it looks through aliases first,
built-ins second, functions third, and PATH fourth. I tried making a
function called cd, but it didn't work, and an alias called cd did work, but
I was unable to pass parameters into it. Any one have any suggestions?
-----
Sean Fagan ------\
Computer Center litvax \
Cal State University, Northridge rdlvax \
18111 Nordhoff St. psivax --> !csun!aeusesef
Northridge, CA 91330 hplabs /
AGTLSEF at CALSTATE.BITNET ihnp4 /
------/
"I drank what?!" -- Socrates
More information about the Comp.unix.questions
mailing list