[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#291026: 9.3.3.2 "command -v" example needs tweaking



On Tue, Jan 18, 2005 at 10:48:57AM +0100, Thomas Hood wrote:
> sequence of commands which illustrate that "command -v foo" prints
> the name of the first executable file "foo" it finds on the PATH,
> failing which it prints the first non-executable file "foo" it finds
> on the PATH.  What sense does that make?  If people agree then I'll
> file a bug report against bash.

Apparently 'command -v' is mentionned as optional in POSIX ? In this
case, is bash implementing this option the POSIX way ?

For the record, I agree with you that bash behviour here is confusing
and not terribly useful...

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 



Reply to: