home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5151 < prev    next >
Encoding:
Text File  |  1992-12-24  |  676 b   |  20 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!microsoft!wingnut!russsan
  3. From: russsan@microsoft.com (Russell Sanchez)
  4. Subject: How to do csh-like alias in ksh?
  5. Message-ID: <1992Dec24.022550.8880@microsoft.com>
  6. Date: 24 Dec 92 02:25:50 GMT
  7. Organization: Microsoft Corporation
  8. Distribution: pnw
  9. Lines: 9
  10.  
  11. Is there any way to do a csh-like 'bang' in ksh aliases?  I'm basically
  12. trying to do alias substitution (including parser metasyntax if possible).
  13. For example, I want to convert the csh alias...
  14. alias ff 'find . -name /!* -print'
  15. ...to ksh, something like...
  16. alias ff='find . -name ???? -print'
  17. ...but what is the ????.  ksh doesn't seem to parse commands like csh.
  18.  
  19. Russ
  20.