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
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
> > |
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
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
-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
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,
&
-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
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