-----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 code when output | is empty in either case?
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 of an error on no output seems reasonable to me. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkhfn5MACgkQ84KuGfSFAYAnrgCeJ0WOSnhrnod/CkUKtvl9iFVP JIQAoNYTI9uSejXynBindVCIOD8rLFgr =j4OM -----END PGP SIGNATURE----- _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils