diff options
author | Jim Meyering <jim@meyering.net> | 1993-10-19 00:00:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-10-19 00:00:06 +0000 |
commit | 723d3d528db8b3abb05357bf5a7af7173c1636e7 (patch) | |
tree | 23fc7ea7e6b0721e7705f60a7c14bd9dcafd5eca /src/ls.c | |
parent | 712ac6d5a0122dbcbc89669143580de1326f1d46 (diff) | |
download | coreutils-723d3d528db8b3abb05357bf5a7af7173c1636e7.tar.xz |
merge with 3.8.4k
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -1880,13 +1880,12 @@ static void usage (status) int status; { - fprintf (status == 0 ? stdout : stderr, "\ -Usage: %s [OPTION]... [PATH]...\n\ -", - program_name); - - if (status == 0) + if (status != 0) + fprintf (stderr, "Try `%s --help' for more information.\n", + program_name); + else { + printf ("Usage: %s [OPTION]... [PATH]...\n", program_name); printf ("\ \n\ -a, --all do not hide entries starting with .\n\ @@ -1937,9 +1936,5 @@ Usage: %s [OPTION]... [PATH]...\n\ Sort entries alphabetically if none of -cftuSUX nor --sort.\n"); } - else - fprintf (stderr, "Try `%s --help' for more information.\n", - program_name); - exit (status); } |