Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!necntc!linus!gatech!lll-lcc!ptsfa!ssl From: ssl@ptsfa.UUCP (Sam Lok) Newsgroups: comp.unix.questions Subject: Re: Korn Shell Message-ID: <2181@ptsfa.UUCP> Date: Tue, 10-Mar-87 12:30:48 EST Article-I.D.: ptsfa.2181 Posted: Tue Mar 10 12:30:48 1987 Date-Received: Wed, 11-Mar-87 04:04:23 EST References: <577@csun.UUCP> <14672@sun.uucp> Reply-To: ssl@ptsfa.UUCP (Sam Lok) Organization: Pacific * Bell, San Ramon, CA Lines: 17 Keywords: alias parameters In article <14672@sun.uucp> guy@sun.UUCP (Guy Harris) writes: >>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? >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. Ksh support both alias and function. To answer the original question, the answer is 'yes', try '$*' or '$@'. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Sam Lok San Francisco {ihnp4,pyramid,qantel}!ptsfa!ssl || To err is human, to really foul things Disclaimer!? WHAT disclaimer? || up requires super-user privilege!