From 29360166ff8b30f870e9963c9e50ce56712f4361 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 23 Mar 2006 23:34:42 +0000 Subject: (nohup invocation): nohup now redirects stderr to nohup.out if stdout is closed and stderr is a tty. --- doc/coreutils.texi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 8a9317d5f..094fbd422 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -12936,8 +12936,11 @@ 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 +If standard error is a terminal, it is normally redirected to the same file descriptor as the (possibly-redirected) standard output. +However, if standard output is closed, standard error terminal output +is instead appended to the file @file{nohup.out} or +@file{$HOME/nohup.out} as above. @command{nohup} does not automatically put the command it runs in the background; you must do that explicitly, by ending the command line -- cgit v1.2.3-54-g00ecf