Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!sri-spam!ames!cit-vax!usc-oberon!sdcrdcf!psivax!csun!aeusesef From: aeusesef@csun.UUCP Newsgroups: comp.unix.questions Subject: Re: Korn Shell Message-ID: <580@csun.UUCP> Date: Mon, 9-Mar-87 18:52:04 EST Article-I.D.: csun.580 Posted: Mon Mar 9 18:52:04 1987 Date-Received: Wed, 11-Mar-87 22:07:51 EST Organization: California State University, Northridge Lines: 36 Keywords: Korn shell ksh aliases parameters oops 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@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@CALSTATE.BITNET ihnp4 / ------/ "I drank what?!" -- Socrates