home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14688 < prev    next >
Encoding:
Text File  |  1992-12-14  |  755 b   |  30 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!caen!uwm.edu!ux1.cso.uiuc.edu!cs.uiuc.edu!schwager
  3. From: schwager@mike.cs.uiuc.edu (Mike Schwager)
  4. Subject: Simple Korn shell question
  5. Message-ID: <Bz9wnp.IHz@cs.uiuc.edu>
  6. Sender: news@cs.uiuc.edu
  7. Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL
  8. Date: Mon, 14 Dec 1992 23:45:24 GMT
  9. Lines: 19
  10.  
  11.  
  12. Hi,
  13. Got a quick one.  If I have an alias like this:
  14.  
  15. alias wow='echo $@ hello there'
  16.  
  17. or even,
  18.  
  19. alias wow="echo $@ hello there"
  20.  
  21. Then why do I get the following when I run the alias?  To wit,
  22.  
  23. $ wt WOW
  24. hello there WOW
  25.  
  26. The argument(s) should be first!  Why not?  The same thing happens with the
  27. print command.
  28. -Mike
  29.