nohup (from Bourne shell)
Karl Heuer
karl at haddock.UUCP
Thu Dec 4 05:10:32 AEST 1986
The shell script /usr/bin/nohup uses `$*' where it should use `$@';
this breaks things like `nohup sh -c "echo foo"' because the quotes
get lost.
Moreover, it insists on sending stdout and stderr to the same place,
even if they were both redirected; and the destination is either
nohup.out or the existing stdout, but the decision is based on the
status of *stderr*. (So that, e.g., `nohup cmd 2>/dev/null' will
actually leave its output at the terminal.)
It might also be mentioned that `test -t >&2' is a bit obscure; the
notation `test -t 2' or `[ -t 2 ]' is more transparent, if indeed
this is the desired effect.
Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list