summaryrefslogtreecommitdiff
path: root/doc/coreutils.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-03-19 00:46:16 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-03-19 00:46:16 +0000
commitf57d67630f8a9e2b50695891f52f90d189ea4807 (patch)
treea55d67e7af9ae9425e05ca1134a5f5a4e2fd91f1 /doc/coreutils.texi
parentc8f3dc402bbd153c1112a534bb6a7cd567bcccfa (diff)
downloadcoreutils-f57d67630f8a9e2b50695891f52f90d189ea4807.tar.xz
(nohup invocation): Clarify nohup.out creation.
Diffstat (limited to 'doc/coreutils.texi')
-rw-r--r--doc/coreutils.texi16
1 files changed, 6 insertions, 10 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 6d196013e..69134f338 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -12473,20 +12473,16 @@ nohup @var{command} [@var{arg}]@dots{}
@end example
@flindex nohup.out
-If standard output is a terminal, it is redirected so that it is appended
+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
-to the file @file{$HOME/nohup.out}. If that cannot be written to, the
+to the file @file{$HOME/nohup.out}; and if that cannot be written to, the
command is not run.
-If standard output is not a terminal, then the standard output of
-@var{command} will be the same as that of @command{nohup}.
-
-If @command{nohup} creates either @file{nohup.out} or
-@file{$HOME/nohup.out}, it creates it with no ``group'' or ``other''
-access permissions. It does not change the permissions if the output
-file already existed.
+Any @file{nohup.out} or @file{$HOME/nohup.out} file created by
+@command{nohup} is made readable and writable only to the user,
+regardless of the current umask settings.
If standard error is a terminal, it is redirected to the same file
-descriptor as the standard output.
+descriptor as the (possibly-redirected) standard output.
@command{nohup} does not automatically put the command it runs in the
background; you must do that explicitly, by ending the command line