Article View: aus.computers.linux
Article #47546Re: Where do I get the "which" command?
From: Glen Turner
Date: Fri, 08 Jan 1999 00:00
Date: Fri, 08 Jan 1999 00:00
22 lines
1241 bytes
1241 bytes
Phill Edwards wrote:
>
> When I try to "make xconfig", it gets part way through and then falls over
> beceause it says it doesn't know what the "which" command is.
>
> I'm running Debian Linux 2.0.34. Does anyone know what package I need to
> implement "which"?
"which" isn't a command in Linux, it is a command alias
usually defined in /etc/bashrc as:
alias which="type -path"
I suggest that this lies at the heart of your problem.
In the very worst case, you could create a /usr/local/bin/which
shell script containing something like
#!/bin/bash -
type -path ${*}
But things would have to be very broken for you to need to do that.
Technical Details
Message-ID:
<3695BD11.15A831E8@adelaide.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<773ove$o95$1@reader1.reader.news.ozemail.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,330347e518ef479a X-Google-Attributes: gid102983,public From: Glen Turner <glen.turner@adelaide.edu.au> Subject: Re: Where do I get the "which" command? Date: 1999/01/08 Message-ID: <3695BD11.15A831E8@adelaide.edu.au> X-Deja-AN: 430118556 Content-Transfer-Encoding: 7bit References: <773ove$o95$1@reader1.reader.news.ozemail.net> Content-Type: text/plain; charset=us-ascii Organization: IT Services, University of Adelaide, South Australia MIME-Version: 1.0 Newsgroups: aus.computers.linux