bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] : ls: clarify documentation of exit statuses


From: Paul Eggert
Subject: Re: [PATCH] : ls: clarify documentation of exit statuses
Date: Thu, 16 Oct 2008 13:13:06 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Jim Meyering <address@hidden> writes:

> Good thing I tried to compile before pushing!
> The above lacks \n\ on the "0 if OK" line.

It's also lacking a close-parenthesis in the text.  Also, that wording
is a bit verbose for my taste; the verbosity makes it a bit hard to see
the exit-status pattern.  How about this more-concise version?

2008-10-16  Paul Eggert  <address@hidden>

        * src/ls.c (usage): Describe exit statuses more concisely.

diff --git a/src/ls.c b/src/ls.c
index ea35b17..34e43ed 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -4532,10 +4532,8 @@ colors, and can be set easily by the dircolors 
command.\n\
 \n\
 Exit status:\n\
  0  if OK,\n\
- 1  if minor problems (e.g., failure to access a file or directory not\n\
-    specified as a command line argument,\n\
- 2  if serious trouble (e.g., memory exhausted, invalid option or failure\n\
-    to access a file or directory specified as a command line argument).\n\
+ 1  if minor problems (e.g., cannot access subdirectory),\n\
+ 2  if serious trouble (e.g., cannot access command-line argument).\n\
 "), stdout);
       emit_bug_reporting_address ();
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]