summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2007-04-28 20:47:29 +0200
committerJim Meyering <jim@meyering.net>2007-04-28 20:48:36 +0200
commit60f3c362f51500cc6e9b5dbcd5ff4dfd3fcd914e (patch)
tree493b5c5d4ffc31d91c5da35da360a2c610e9d3c1 /src
parentcebbc9ee6d8ccbda75701bd6eadab3dec3a0ef57 (diff)
downloadcoreutils-60f3c362f51500cc6e9b5dbcd5ff4dfd3fcd914e.tar.xz
* src/nohup.c (usage): Describe how standard input and output are redirected.
Diffstat (limited to 'src')
-rw-r--r--src/nohup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nohup.c b/src/nohup.c
index dd64410b3..aeab291c3 100644
--- a/src/nohup.c
+++ b/src/nohup.c
@@ -66,6 +66,13 @@ Run COMMAND, ignoring hangup signals.\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ printf (_("\n\
+If standard input is a terminal, redirect it from /dev/null.\n\
+If standard output is a terminal, append output to `nohup.out' if possible,\n\
+`$HOME/nohup.out' otherwise.\n\
+If standard error is a terminal, redirect it to standard output.\n\
+To save output to FILE, use `%s COMMAND > FILE'.\n"),
+ program_name);
printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
emit_bug_reporting_address ();
}