On Mon, Nov 7, 2011 at 7:16 PM, Colin Watson <cjwat...@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 -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss