summaryrefslogtreecommitdiff
path: root/src/install.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-09 20:44:16 +0000
committerJim Meyering <jim@meyering.net>1993-10-09 20:44:16 +0000
commit87372cd3aefb4154d9096a491700576d551abd1f (patch)
tree152f4b579d8b9b064d01fbd009795771098e5410 /src/install.c
parent4ab2d8f53aa7198e41d0e4e0e94055dc1f6e31ba (diff)
downloadcoreutils-87372cd3aefb4154d9096a491700576d551abd1f.tar.xz
merge with 3.8.3e
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/install.c b/src/install.c
index 2c238689f..3c9f19602 100644
--- a/src/install.c
+++ b/src/install.c
@@ -540,7 +540,7 @@ static void
usage (status)
int status;
{
- fprintf (stderr, "\
+ fprintf (status == 0 ? stdout : stderr, "\
Usage: %s [OPTION]... SOURCE DEST (1st format)\n\
or: %s [OPTION]... SOURCE... DIRECTORY (2nd format)\n\
or: %s [OPTION]... DIRECTORY... (3nd format)\n\
@@ -548,15 +548,15 @@ Usage: %s [OPTION]... SOURCE DEST (1st format)\n\
program_name, program_name, program_name);
if (status == 0)
- fprintf (stderr, "\
+ fprintf (stdout, "\
-c (ignored)\n\
-d, --directory create [leading] directories, mandatory for 3rd format\n\
-g, --group GROUP set group ownership, instead of process' current group\n\
-m, --mode MODE set permission mode (as in chmod), instead of 0755\n\
-o, --owner OWNER set ownership (super-user only)\n\
-s, --strip strip symbol tables, only for 1st and 2nd formats\n\
- --help provide this help\n\
- --version show program version\n");
+ --help display this help and exit\n\
+ --version output version information and exit\n");
else
fprintf (stderr, "Try `%s --help' for more information.\n",