Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!panda!genrad!decvax!ima!haddock!karl From: karl@haddock.UUCP (Karl Heuer) Newsgroups: comp.bugs.4bsd Subject: nohup (from Bourne shell) Message-ID: <181@haddock.UUCP> Date: Wed, 3-Dec-86 14:10:32 EST Article-I.D.: haddock.181 Posted: Wed Dec 3 14:10:32 1986 Date-Received: Wed, 3-Dec-86 22:15:55 EST Reply-To: karl@haddock.isc.com.UUCP (Karl Heuer) Distribution: world Organization: Interactive Systems, Boston Lines: 15 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@haddock.isc.com), The Walking Lint