summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/coreutils.texi15
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 5168f40e3..6fd1cc20e 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -12615,6 +12615,13 @@ out. Synopsis:
nohup @var{command} [@var{arg}]@dots{}
@end example
+If standard input is a terminal, it is redirected from
+@file{/dev/null} so that terminal sessions do not mistakenly consider
+the terminal to be used by the command. This is a @acronym{GNU}
+extension; programs intended to be portable to non-@acronym{GNU} hosts
+should use @samp{nohup @var{command} [@var{arg}]@dots{} </dev/null}
+instead.
+
@flindex nohup.out
If standard output is a terminal, the command's standard output is appended
to the file @file{nohup.out}; if that cannot be written to, it is appended
@@ -12627,14 +12634,6 @@ 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. To avoid glitches in poorly-written programs standard input
-is then reopened with an innocuous file descriptor that cannot be read
-from. However, these steps are 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