home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14763 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.0 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!charnel!sifon!cidsv01.cid.aes.doe.CA!afsypng
  2. From: afsypng@cid.aes.doe.CA (Jacques Marcoux)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Simple Korn shell question
  5. Message-ID: <1992Dec17.135840.29787@cid.aes.doe.CA>
  6. Date: 17 Dec 92 13:58:40 GMT
  7. Organization: Environment Canada (CID), Dorval, QC
  8. Lines: 26
  9.  
  10. In article <Bz9wnp.IHz@cs.uiuc.edu> schwager@mike.cs.uiuc.edu (Mike Schwager) writes:
  11. >
  12. .
  13. .
  14. .
  15. >alias wow="echo $@ hello there"
  16. >Then why do I get the following when I run the alias?  To wit,
  17. >$ wt WOW
  18. >hello there WOW
  19. >$ 
  20. >The argument(s) should be first!  Why not?  The same thing happens with the
  21. >print command.
  22.  
  23.      You can not have parameter in ksh aliases, it should be written as a function
  24.  
  25. function wow
  26. {
  27.    echo $@ hello there;
  28. }
  29.  
  30.  
  31. -- 
  32. ================================================================================
  33. Thou shalt check the array  bounds of all  strings  (indeed,  all  arrays),  for
  34. surely where thou typest ``foo'' someone someday shall type ``supercalifragilis-
  35. ticexpialidocious''.
  36.