From b24a3e839105c66212dbd475600ba1af9f1a9d01 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 12 May 2005 09:24:27 +0000 Subject: (nohup invocation): nohup now closes stdin if it is a terminal, unless POSIXLY_CORRECT is set. --- doc/coreutils.texi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 413b66618..f0ad8d8bc 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 -- cgit v1.2.3-54-g00ecf