From: Paul Eggert Date: Thu, 12 May 2005 09:24:27 +0000 (+0000) Subject: (nohup invocation): nohup now closes stdin if it is a terminal, unless X-Git-Tag: CPPI-1_12~822 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b24a3e839105c66212dbd475600ba1af9f1a9d01;p=thirdparty%2Fcoreutils.git (nohup invocation): nohup now closes stdin if it is a terminal, unless POSIXLY_CORRECT is set. --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 413b666181..f0ad8d8bcf 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -12568,6 +12568,12 @@ regardless of the current umask settings. If standard error is a terminal, it is redirected to the same file descriptor as the (possibly-redirected) standard output. +@vindex POSIXLY_CORRECT +If standard input is a terminal, it is closed so that terminal +sessions do not mistakenly consider the terminal to be used by the +command. However, this step is skipped if @env{POSIXLY_CORRECT} is +set since @acronym{POSIX} requires standard input to be left alone. + @command{nohup} does not automatically put the command it runs in the background; you must do that explicitly, by ending the command line with an @samp{&}. Also, @command{nohup} does not change the