coreutils
[Top][All Lists]
Advanced

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

[PATCH] doc: clarify --zero-terminated option


From: Pádraig Brady
Subject: [PATCH] doc: clarify --zero-terminated option
Date: Fri, 23 May 2014 01:02:15 +0100

* src/join.c (usage): Reword to avoid implication that
the NUL byte is only generated as the output delimeter.
* src/sort.c (usage): Likewise.
* src/shuf.c (usage): Likewise. Also since we're changing the
translation string take the opportunity to separate out
the description to a separate string to reduce translation overhead.
* src/uniq.c (usage): Likewise.
---
 src/join.c |    2 +-
 src/shuf.c |    4 +++-
 src/sort.c |    2 +-
 src/uniq.c |    4 +++-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/join.c b/src/join.c
index fd8f22c..5c26e78 100644
--- a/src/join.c
+++ b/src/join.c
@@ -218,7 +218,7 @@ by whitespace.  When FILE1 or FILE2 (not both) is -, read 
standard input.\n\
                       print them without trying to pair them\n\
 "), stdout);
       fputs (_("\
-  -z, --zero-terminated     end lines with 0 byte, not newline\n\
+  -z, --zero-terminated     line delimiter is NUL, not newline\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
diff --git a/src/shuf.c b/src/shuf.c
index 6ae0755..915f7b7 100644
--- a/src/shuf.c
+++ b/src/shuf.c
@@ -77,7 +77,9 @@ Write a random permutation of the input lines to standard 
output.\n\
   -o, --output=FILE         write result to FILE instead of standard output\n\
       --random-source=FILE  get random bytes from FILE\n\
   -r, --repeat              output lines can be repeated\n\
-  -z, --zero-terminated     end lines with 0 byte, not newline\n\
+"), stdout);
+      fputs (_("\
+  -z, --zero-terminated     line delimiter is NUL, not newline\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
diff --git a/src/sort.c b/src/sort.c
index 3380be6..49caae5 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -504,7 +504,7 @@ Other options:\n\
 \n\
 "), DEFAULT_TMPDIR);
       fputs (_("\
-  -z, --zero-terminated     end lines with 0 byte, not newline\n\
+  -z, --zero-terminated     line delimiter is NUL, not newline\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
diff --git a/src/uniq.c b/src/uniq.c
index deba0a3..54200ff 100644
--- a/src/uniq.c
+++ b/src/uniq.c
@@ -200,7 +200,9 @@ With no options, matching lines are merged to the first 
occurrence.\n\
   -i, --ignore-case     ignore differences in case when comparing\n\
   -s, --skip-chars=N    avoid comparing the first N characters\n\
   -u, --unique          only print unique lines\n\
-  -z, --zero-terminated  end lines with 0 byte, not newline\n\
+"), stdout);
+      fputs (_("\
+  -z, --zero-terminated     line delimiter is NUL, not newline\n\
 "), stdout);
      fputs (_("\
   -w, --check-chars=N   compare no more than N characters in lines\n\
-- 
1.7.7.6




reply via email to

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