Re: Incorrect exit status from which(1)/whereis(1)

2011-03-10 Thread Philip Guenther
On Mon, Feb 14, 2011 at 3:31 AM, David Julio wrote: ... > Index: which.c > === > RCS file: /cvs/src/usr.bin/which/which.c,v > retrieving revision 1.16 > diff -u -r1.16 which.c > --- which.c 31 May 2010 14:01:49 - 1.16 > +

Re: Incorrect exit status from which(1)/whereis(1)

2011-03-09 Thread Philip Guenther
On 3/1/11, Jason McIntyre wrote: > On Mon, Feb 14, 2011 at 11:31:18AM +, David Julio wrote: >> Is the exit status of which(1)/whereis(1) correct? > > is any developer interested in looking at this? I like the diff and will commit it in 24hrs if no objects. I'll note that the description of t

Re: Incorrect exit status from which(1)/whereis(1)

2011-03-01 Thread Jason McIntyre
On Mon, Feb 14, 2011 at 11:31:18AM +, David Julio wrote: > Is the exit status of which(1)/whereis(1) correct? > is any developer interested in looking at this? jmc > $ which a b c > which: a: Command not found > which: b: Command not found > which: c: Command not found > > $ echo $? > 2 >

Re: Incorrect exit status from which(1)/whereis(1)

2011-02-15 Thread David Julio
On Tue, Feb 15, 2011 at 5:30 PM, Jason McIntyre wrote: > On Mon, Feb 14, 2011 at 11:31:18AM +, David Julio wrote: >> Is the exit status of which(1)/whereis(1) correct? >> >> $ which a b c >> which: a: Command not found >> which: b: Command not found >> which: c: Command not found >> >> $ echo

Re: Incorrect exit status from which(1)/whereis(1)

2011-02-15 Thread Thordur Bjornsson
On Tue, Feb 15, 2011 at 05:30:11PM +, Jason McIntyre wrote: > On Mon, Feb 14, 2011 at 11:31:18AM +, David Julio wrote: > > Is the exit status of which(1)/whereis(1) correct? > > > > $ which a b c > > which: a: Command not found > > which: b: Command not found > > which: c: Command not foun

Re: Incorrect exit status from which(1)/whereis(1)

2011-02-15 Thread Jason McIntyre
On Mon, Feb 14, 2011 at 11:31:18AM +, David Julio wrote: > Is the exit status of which(1)/whereis(1) correct? > > $ which a b c > which: a: Command not found > which: b: Command not found > which: c: Command not found > > $ echo $? > 2 > > $ which -a a b c > which: a: Command not found > whi

Incorrect exit status from which(1)/whereis(1)

2011-02-14 Thread David Julio
Is the exit status of which(1)/whereis(1) correct? $ which a b c which: a: Command not found which: b: Command not found which: c: Command not found $ echo $? 2 $ which -a a b c which: a: Command not found which: b: Command not found which: c: Command not found $ echo $? 1 If it is incorrect,