|
From: | Bob Proulx |
Subject: | Re: GNU bash, 3.00.15(1)-release, referenced cmd in cwd executes alternate cmd |
Date: | Thu, 4 Jan 2007 09:36:32 -0700 |
User-agent: | Mutt/1.5.9i |
Matthew Woehlke wrote: > Bob Proulx wrote: > > Traditional Unix machines used a csh script /usr/bin/which to search a > > defined set of system paths. Newer ksh used 'whence'. Bash uses 'type'. > > XSI extensions to POSIX require 'command -v'. Debian implemented > > 'which' as a bash shell script and fixed problems with the csh > > implementation making the Debian 'which' usable but different from > > everyone else's 'which' command. > > And newer GNU systems have GNU which; a stand-alone program that does > neat things like read aliases from stdin so that you can do: > $ which ll > alias ll='ls -l --color=tty' > /usr/local/bin/ls > $ alias which > alias which='alias | which -i' > $ which --version > GNU which v2.16, Copyright (C) 1999 - 2003 Carlo Wood. Wonderful. Yet another 'which' implementation! Bob
[Prev in Thread] | Current Thread | [Next in Thread] |