Re: EXIT_CANCELED

2009-10-24 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 10/24/2009 9:23 AM: >> +case `env -- -i PATH="$PATH" echo fail` in >> + pass) ;; >> + *) fail=1 ;; >> +esac > > Thanks, but that cannot work (expecting to invoke ./-i) unless you > have "." in your PATH. Since I don't,

Re: EXIT_CANCELED

2009-10-24 Thread Jim Meyering
Eric Blake wrote: > According to Jim Meyering on 10/23/2009 7:48 AM: >>> So, how about this patch series? (I guess I should check whether this >>> change causes any testsuite failures, and if not, add some tests.) > > Yes, there were some test failures that I had to fix. Even some unrelated > fa

Re: EXIT_CANCELED

2009-10-23 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 10/23/2009 7:48 AM: >> So, how about this patch series? (I guess I should check whether this >> change causes any testsuite failures, and if not, add some tests.) Yes, there were some test failures that I had to fix. Eve

Re: EXIT_CANCELED

2009-10-23 Thread Jim Meyering
Eric Blake wrote: > According to Eric Blake on 10/9/2009 6:28 AM: > nohup enums NOHUP_FAILURE=127 which clashes with EXIT_ENOENT? Required by POSIX to fail with 127 on internal failure (bummer). >> >> If POSIX agrees with my bug report, then we can blindly use EXIT_CANCELED >> in nohup; i

Re: EXIT_CANCELED

2009-10-23 Thread Pádraig Brady
Eric Blake wrote: > > So, how about this patch series? (I guess I should check whether this > change causes any testsuite failures, and if not, add some tests.) > > [PATCH 1/2] chroot, env, nice, su: use EXIT_CANCELED for internal failure looks good. > [PATCH 2/2] nohup: use EXIT_CANCELED if n