Re: who(1) exit status

2008-06-24 Thread Shal-Linux-Ind
AIL PROTECTED]> wrote: >> >> Eric Blake <[EMAIL PROTECTED]> writes: >> >> > According to Shal-Linux-Ind on 6/23/2008 4:05 AM: >> > | Hi, >> > | >> > | who(1) exit status is always 0. >> > | >> > | $ who --v >> > | w

Re: who(1) exit status

2008-06-23 Thread Shal-Linux-Ind
On 6/23/08, Andreas Schwab <[EMAIL PROTECTED]> wrote: > > Eric Blake <[EMAIL PROTECTED]> writes: > > > According to Shal-Linux-Ind on 6/23/2008 4:05 AM: > > | Hi, > > | > > | who(1) exit status is always 0. > > | > > | $ who --v > > |

Re: who(1) exit status

2008-06-23 Thread Bo Borgerson
Andreas Schwab wrote: > Eric Blake <[EMAIL PROTECTED]> writes: > >> According to Shal-Linux-Ind on 6/23/2008 4:05 AM: >> | Hi, >> | >> | who(1) exit status is always 0. >> | >> | $ who --v >> | who (coreutils) 5.2.1 >> >> Than

Re: who(1) exit status

2008-06-23 Thread Andreas Schwab
Eric Blake <[EMAIL PROTECTED]> writes: > POSIX requires an error message to stderr explaining the non-zero status. > ~ What would we report? On the other hand, it seems like we should always > expect at least the current user to be logged in (otherwise, how is who > being invoked?), so the idea o

Re: who(1) exit status

2008-06-23 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bo Borgerson on 6/23/2008 6:59 AM: | So it sounds like there's no portable way to distinguish between: | | 1. an error trying to look up information | 2. no information to be found | | Would it make sense, though, to return a nonzero exit

Re: who(1) exit status

2008-06-23 Thread Andreas Schwab
Eric Blake <[EMAIL PROTECTED]> writes: > According to Shal-Linux-Ind on 6/23/2008 4:05 AM: > | Hi, > | > | who(1) exit status is always 0. > | > | $ who --v > | who (coreutils) 5.2.1 > > Thanks for the report. Consider upgrading - that is several years old, &

Re: who(1) exit status

2008-06-23 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Shal-Linux-Ind on 6/23/2008 4:05 AM: | Hi, | | who(1) exit status is always 0. | | $ who --v | who (coreutils) 5.2.1 Thanks for the report. Consider upgrading - that is several years old, and the latest stable version is 6.12. But I

who(1) exit status

2008-06-23 Thread Shal-Linux-Ind
Hi, who(1) exit status is always 0. $ who --v who (coreutils) 5.2.1 ... ... $ who $echo $? 0 I think all commands should fail with exit status 1, which is usefull in processing with other commands. Thanks Shal ___ Bug-coreutils mailing list Bug