home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / shell / 4848 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  820 b 

  1. Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!misty!ccvj
  2. Newsgroups: comp.unix.shell
  3. Subject: Korn shell alias-argument processing
  4. Message-ID: <1992Nov23.225510.11974@lugb.latrobe.edu.au>
  5. From: ccvj@misty.latrobe.edu.au (Vicki Jordan)
  6. Date: Mon, 23 Nov 1992 22:55:10 GMT
  7. Sender: news@lugb.latrobe.edu.au (USENET News System)
  8. Organization: La Trobe University
  9. Lines: 17
  10.  
  11. What is the Korn Shell equivalent of the following csh alias?
  12. alias dir 'ls -l \!* | more'
  13.  
  14. I can do it using a script:
  15. ls -l $@ | more
  16.  
  17. but I can't work out how to get the arguments substituted on the ls not
  18. the more from the command line.
  19.  
  20. Thanks ...
  21.  
  22. Vicki Jordan
  23. -- 
  24. Vicki Jordan                               ccvj@misty.latrobe.edu.au
  25. Computing Services
  26. La Trobe University 
  27. Bundoora Vic 3083 Australia
  28.