Ubuntu should move all binaries to /usr/bin/

John McCabe-Dansted gmatht at gmail.com
Mon Dec 5 18:34:56 UTC 2011


On Mon, Nov 7, 2011 at 7:16 PM, Colin Watson <cjwatson at ubuntu.com> wrote:
> On Sat, Nov 05, 2011 at 02:40:31AM +0800, John McCabe-Dansted wrote:
>> We could even enhance which to look in obvious places off the path (perhaps
>> locatedb?)  and print the output on stderr if we really wanted to.
>
> Please don't - 'which' is used in scripts and needs to preserve its
> current behaviour.  Any extra behaviour should be added to a
> different/new program.

There are ways to detect script vs interactive shell, but nobody seems
to want this feature enough to justify adding it to which anyway, so
it is a bit of a moot point.

-- 
John C. McCabe-Dansted




More information about the Ubuntu-devel-discuss mailing list