home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!charnel!sifon!cidsv01.cid.aes.doe.CA!afsypng
- From: afsypng@cid.aes.doe.CA (Jacques Marcoux)
- Newsgroups: comp.unix.questions
- Subject: Re: Simple Korn shell question
- Message-ID: <1992Dec17.135840.29787@cid.aes.doe.CA>
- Date: 17 Dec 92 13:58:40 GMT
- Organization: Environment Canada (CID), Dorval, QC
- Lines: 26
-
- In article <Bz9wnp.IHz@cs.uiuc.edu> schwager@mike.cs.uiuc.edu (Mike Schwager) writes:
- >
- .
- .
- .
- >alias wow="echo $@ hello there"
- >Then why do I get the following when I run the alias? To wit,
- >$ wt WOW
- >hello there WOW
- >$
- >The argument(s) should be first! Why not? The same thing happens with the
- >print command.
-
- You can not have parameter in ksh aliases, it should be written as a function
-
- function wow
- {
- echo $@ hello there;
- }
-
-
- --
- ================================================================================
- Thou shalt check the array bounds of all strings (indeed, all arrays), for
- surely where thou typest ``foo'' someone someday shall type ``supercalifragilis-
- ticexpialidocious''.
-