home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!think.com!ames!elroy.jpl.nasa.gov!news.claremont.edu!fenris!jwinstea
- From: jwinstea@fenris.claremont.edu (Jim Winstead Jr.)
- Subject: Re: which(1) ? where-is-it : I-wrote-one
- Message-ID: <1992Nov10.022829.6937@muddcs.claremont.edu>
- Sender: news@muddcs.claremont.edu (The News System)
- Organization: Harvey Mudd College, WIBSTR
- References: <9211082953@gandalf.moria> <1992Nov9.144932.27093@colorado.edu>
- Date: Tue, 10 Nov 1992 02:28:29 GMT
- Lines: 30
-
- In article <1992Nov9.144932.27093@colorado.edu> drew@kinglear.cs.colorado.edu (Drew Eckhardt) writes:
- >In article <9211082953@gandalf.moria> u31b3hs@pool.informatik.rwth-aachen.de (Michael Haardt) writes:
- >>Hello,
- >>
- >>I just noted that the GNU shellutils don't include which(1). If there
- >>is a version floating around, I would like to know where I can get it,
- >>otherwise I offer to make mine (including manual page) available.
- >
- >Under bash, you can make it an alias -
- >
- >alias which='type -path'
- >
- >Under tcsh, it is a built in.
- >
- >If you are using ash as an interactive shell, I feel for you.
- >Switch to bash for a Bourne shell or tcsh for a C shell.
-
- Or 'rc' for a good shell, and you'll have the 'whatis' command that
- does the same thing as which. :)
-
- Also, using
-
- alias which='type -path'
-
- doesn't expand shell functions or aliases....
- --
- loveritablessencentipedependentalism+ Jim Winstead Jr. (CSci '95)
- andaterrificklengtherealityearguessy| Harvey Mudd College, WIBSTR
- mpathybridgenerationiceremonymphysic| jwinstea@jarthur.Claremont.EDU
- alendareadvertisexpresshothoughthend+ or jwinstea@fenris.Claremont.EDU
-