-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Pádraig Brady on 10/9/2009 3:47 AM: >>> nohup enums NOHUP_FAILURE=127 which clashes with EXIT_ENOENT? >> Required by POSIX to fail with 127 on internal failure (bummer). > > Weird. POSIX does say that and includes the reason:
The reason you quoted only mentions if the utility is not found; not if an internal error occurred. I've filed a bug with the Austin group: http://austingroupbugs.net/view.php?id=165 http://www.opengroup.org/sophocles/show_mail.tpl?CALLER=index.tpl&source=L&listname=austin-group-l&id=12862 > Note however that env and nice are mentioned, > and the above paragraph is also included in their description, > but that they've been specified to use 125 on internal failure. > So that paragraph should be updated in POSIX at least > and maybe with clarification we could use EXIT_CANCELED in nohup > for consistency? If POSIX agrees with my bug report, then we can blindly use EXIT_CANCELED in nohup; if not, I'm almost willing to make it a POSIXLY_CORRECT issue (return 125 unless we're complying with POSIX). The 'command' utility has the same bug; whereas env, exec, nice, time, xargs were all consistent. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----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/ iEYEARECAAYFAkrPLF8ACgkQ84KuGfSFAYBTpQCgr4e4blmkkzlkvmrCohDlzknD 5pIAmwfeoxn+028H4o4ymUKEeBYJuMmx =6bx1 -----END PGP SIGNATURE-----