home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16188 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!think.com!ames!elroy.jpl.nasa.gov!news.claremont.edu!fenris!jwinstea
  3. From: jwinstea@fenris.claremont.edu (Jim Winstead Jr.)
  4. Subject: Re: which(1) ? where-is-it : I-wrote-one
  5. Message-ID: <1992Nov10.022829.6937@muddcs.claremont.edu>
  6. Sender: news@muddcs.claremont.edu (The News System)
  7. Organization: Harvey Mudd College, WIBSTR
  8. References: <9211082953@gandalf.moria> <1992Nov9.144932.27093@colorado.edu>
  9. Date: Tue, 10 Nov 1992 02:28:29 GMT
  10. Lines: 30
  11.  
  12. In article <1992Nov9.144932.27093@colorado.edu> drew@kinglear.cs.colorado.edu (Drew Eckhardt) writes:
  13. >In article <9211082953@gandalf.moria> u31b3hs@pool.informatik.rwth-aachen.de (Michael Haardt) writes:
  14. >>Hello,
  15. >>
  16. >>I just noted that the GNU shellutils don't include which(1).  If there
  17. >>is a version floating around, I would like to know where I can get it,
  18. >>otherwise I offer to make mine (including manual page) available.
  19. >
  20. >Under bash, you can make it an alias - 
  21. >
  22. >alias which='type -path'
  23. >
  24. >Under tcsh, it is a built in.
  25. >
  26. >If you are using ash as an interactive shell, I feel for you. 
  27. >Switch to bash for a Bourne shell or tcsh for a C shell.
  28.  
  29. Or 'rc' for a good shell, and you'll have the 'whatis' command that
  30. does the same thing as which.  :)
  31.  
  32. Also, using
  33.  
  34.     alias which='type -path'
  35.  
  36. doesn't expand shell functions or aliases....
  37. -- 
  38. loveritablessencentipedependentalism+      Jim Winstead Jr. (CSci '95)
  39. andaterrificklengtherealityearguessy|      Harvey Mudd College, WIBSTR
  40. mpathybridgenerationiceremonymphysic|   jwinstea@jarthur.Claremont.EDU
  41. alendareadvertisexpresshothoughthend+ or jwinstea@fenris.Claremont.EDU
  42.