]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: update quoting of "Try `prog --help'" to "Try 'prog --help'"
authorJim Meyering <meyering@redhat.com>
Sat, 7 Jan 2012 16:18:14 +0000 (17:18 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 7 Jan 2012 16:18:14 +0000 (17:18 +0100)
Automatically adjust both the source (now in only one place)
and all tests that expect the resulting output via this:

git grep -l 'Try.*--help' src/system.h tests \
  | xargs perl -pi -e 's/Try \\?`(\S+ --help)/Try '\''$1/'

19 files changed:
src/system.h
tests/du/files0-from
tests/ls/time-style-diag
tests/misc/basename
tests/misc/comm
tests/misc/cut
tests/misc/dirname
tests/misc/expr
tests/misc/factor
tests/misc/fmt
tests/misc/invalid-opt
tests/misc/mktemp
tests/misc/printf-cov
tests/misc/seq
tests/misc/sort-files0-from
tests/misc/tsort
tests/misc/uniq
tests/misc/wc-files0-from
tests/mv/diag

index ff88cb4734e136efed84fd303d3ab92b1ace58c7..9948aed1ff303415da5d17e3c205995c8a40b8f5 100644 (file)
@@ -559,7 +559,7 @@ emit_ancillary_info (void)
 static inline void
 emit_try_help (void)
 {
-  fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name);
+  fprintf (stderr, _("Try '%s --help' for more information.\n"), program_name);
 }
 
 #include "inttostr.h"
index d6175407a6cb113ca2864c8f5902874172ce1257..fb25c3f0fd55756e18bc9f96e1328679bea967e9 100755 (executable)
@@ -32,7 +32,7 @@ my @Tests =
    ['f-extra-arg', '--files0-from=- no-such', {IN=>"a"}, {EXIT=>1},
     {ERR => "$prog: extra operand `no-such'\n"
         . "file operands cannot be combined with --files0-from\n"
-        . "Try `$prog --help' for more information.\n"}
+        . "Try '$prog --help' for more information.\n"}
     ],
 
    # missing input file
index 00a0c206833529382a36a1acbf1ab0b26366bde6..ba8c1c88a0033d9a178dc2040b27d9f3e8f6c462 100755 (executable)
@@ -30,7 +30,7 @@ Valid arguments are:
   - [posix-]iso
   - [posix-]locale
   - +FORMAT (e.g., +%H:%M) for a `date'-style format
-Try `ls --help' for more information.
+Try 'ls --help' for more information.
 EOF
 
 compare exp err || fail=1
index 9006e604ec93ea6e9ff37550240ca900e28c257c..6bd5e4019a3d13f824b0fbe8737ed03a4dbb6a56 100755 (executable)
@@ -33,9 +33,9 @@ my $prog = 'basename';
 my @Tests =
     (
      ['fail-1', {ERR => "$prog: missing operand\n"
-       . "Try `$prog --help' for more information.\n"}, {EXIT => '1'}],
+       . "Try '$prog --help' for more information.\n"}, {EXIT => '1'}],
      ['fail-2', qw(a b c), {ERR => "$prog: extra operand `c'\n"
-       . "Try `$prog --help' for more information.\n"}, {EXIT => '1'}],
+       . "Try '$prog --help' for more information.\n"}, {EXIT => '1'}],
 
      ['a', qw(d/f),        {OUT => 'f'}],
      ['b', qw(/d/f),       {OUT => 'f'}],
index ed567403e51714c3a4b2fcdb759dd98f8bea00b3..c727f80fce7a3e629e7e0fd9d954b7d729f79c1c 100755 (executable)
@@ -58,17 +58,17 @@ my @Tests =
    # invalid missing command line argument (1)
    ['missing-arg1', $inputs[0], {EXIT=>1},
     {ERR => "$prog: missing operand after `a'\n"
-        . "Try `$prog --help' for more information.\n"}],
+        . "Try '$prog --help' for more information.\n"}],
 
    # invalid missing command line argument (both)
    ['missing-arg2', {EXIT=>1},
     {ERR => "$prog: missing operand\n"
-        . "Try `$prog --help' for more information.\n"}],
+        . "Try '$prog --help' for more information.\n"}],
 
    # invalid extra command line argument
    ['extra-arg', @inputs, 'no-such', {EXIT=>1},
     {ERR => "$prog: extra operand `no-such'\n"
-        . "Try `$prog --help' for more information.\n"}],
+        . "Try '$prog --help' for more information.\n"}],
 
    # out-of-order input
    ['ooo', {IN=>{a=>"1\n3"}}, {IN=>{b=>"3\n2"}}, {EXIT=>1},
index 0114d654526ed7a76a8135838cf01c27e6d55c35..8c3676ef07ef79a744b3355e04dd81d831033154 100755 (executable)
@@ -28,7 +28,7 @@ my $mb_locale = $ENV{LOCALE_FR_UTF8};
   and $mb_locale = 'C';
 
 my $prog = 'cut';
-my $try = "Try \`$prog --help' for more information.\n";
+my $try = "Try '$prog --help' for more information.\n";
 my $from_1 = "$prog: fields and positions are numbered from 1\n$try";
 my $inval = "$prog: invalid byte or field list\n$try";
 my $no_endpoint = "$prog: invalid range with no endpoint: -\n$try";
index 2e6c8cc0289056ffec86303ea9106bae939f2472..5934b25c7cd5bdd4e11a49c3049d9be2edb312b7 100755 (executable)
@@ -34,9 +34,9 @@ my $prog = 'dirname';
 my @Tests =
     (
      ['fail-1', {ERR => "$prog: missing operand\n"
-       . "Try `$prog --help' for more information.\n"}, {EXIT => '1'}],
+       . "Try '$prog --help' for more information.\n"}, {EXIT => '1'}],
      ['fail-2', qw(a b), {ERR => "$prog: extra operand `b'\n"
-       . "Try `$prog --help' for more information.\n"}, {EXIT => '1'}],
+       . "Try '$prog --help' for more information.\n"}, {EXIT => '1'}],
 
      ['a', qw(d/f),        {OUT => 'd'}],
      ['b', qw(/d/f),       {OUT => '/d'}],
index 9cc1f9d4f7ccc42dc6be35103eb4371eeffdf6f5..be757e2c69b9de1bb76d067102d7c73a5a7b1255 100755 (executable)
@@ -159,7 +159,7 @@ my @Tests =
      ['fail-b', '9 9', {ERR => "$prog: syntax error\n"},
       {EXIT => 2}],
      ['fail-c', {ERR => "$prog: missing operand\n"
-                 . "Try `$prog --help' for more information.\n"},
+                 . "Try '$prog --help' for more information.\n"},
       {EXIT => 2}],
 
      ['bignum-add', "$big + 1", {OUT => $big_p1}],
index 6c11c70abb03a272d71e5dfa269988be16a395c1..71f850ae47025ef5e653f4b465be9df6634fd55a 100755 (executable)
@@ -59,7 +59,7 @@ my @Tests =
      ['z', '-1',
       {ERR_SUBST => q!s/'1'/1/!}, # map newer glibc diagnostic to expected.
       {ERR => "$prog: invalid option -- 1\n"
-       . "Try `$prog --help' for more information.\n"},
+       . "Try '$prog --help' for more information.\n"},
       {EXIT => 1}],
      ['cont', 'a 4',
       {OUT => "4: 2 2\n"},
index 29858fe599ad047785e59129bd624c789dc16ed2..ef10e827448635e08d7dfcb40d8f016257af30ad 100755 (executable)
@@ -37,7 +37,7 @@ my @Tests =
      ['obs-1', '-c -72',
       {ERR => "fmt: invalid option -- 7; -WIDTH is recognized only when it"
        . " is the first\noption; use -w N instead\n"
-       . "Try `fmt --help' for more information.\n" }, {EXIT => 1}],
+       . "Try 'fmt --help' for more information.\n" }, {EXIT => 1}],
 
      # With --prefix=P, do not remove leading space on lines without the prefix.
      ['pfx-1', qw (-p '>'),
index 68e61df8e19b43ddc356f4d447f0c6fd7ebfa1b1..8eae3c27589f5e8e65e22e751a60d879723c7c41 100755 (executable)
@@ -65,7 +65,7 @@ foreach my $prog (@built_programs)
     $prog eq '['
       and next;
 
-    my $try = "Try \`$prog --help' for more information.\n";
+    my $try = "Try '$prog --help' for more information.\n";
     my $x = $exit_status{$prog};
     defined $x
       or $x = 1;
index 1bef533db49f8e054076cdf0d35cdadd832142f8..40bbe51001a134dba744a118802fc6f8a0a18674 100755 (executable)
@@ -57,7 +57,7 @@ my @Tests =
      #
      ['too-many', 'a b',
       {ERR=>"$prog: too many templates\n"
-       . "Try `$prog --help' for more information.\n"}, {EXIT => 1} ],
+       . "Try '$prog --help' for more information.\n"}, {EXIT => 1} ],
      ['too-many-q', '-q a b', {EXIT => 1} ],
 
      ['too-few-x', 'foo.XX', {EXIT => 1},
@@ -164,7 +164,7 @@ my @Tests =
      ['suffix9f', 'aXXXX --suffix=b', {EXIT=>1},
       {ENV=>"POSIXLY_CORRECT=1"},
       {ERR=>"$prog: too many templates\n"
-       . "Try `$prog --help' for more information.\n"}],
+       . "Try '$prog --help' for more information.\n"}],
 
      ['suffix10f', 'aXXb', {EXIT => 1},
       {ERR=>"$prog: too few X's in template `aXXb'\n"}],
index 892cb0199e3f2bec76f3de1781636fa68303b50a..c3a6861d60b4d98def3f2ca2d462b2d3e1e34d93 100755 (executable)
@@ -19,7 +19,7 @@
 use strict;
 
 my $prog = 'printf';
-my $try = "Try \`$prog --help' for more information.\n";
+my $try = "Try '$prog --help' for more information.\n";
 my $pow_2_31 = 2**31;
 
 # Turn off localization of executable's output.
index dabdccf4ec64e7fed1f5b5b1a3fbcac56e774bd6..05770b0da177166e59461df6bf719a36b5eb9e84 100755 (executable)
@@ -24,7 +24,7 @@ use strict;
 @ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
 
 my $prog = 'seq';
-my $try_help = "Try `$prog --help' for more information.\n";
+my $try_help = "Try '$prog --help' for more information.\n";
 
 my $locale = $ENV{LOCALE_FR_UTF8};
 ! defined $locale || $locale eq 'none'
index ebabae3624194f62c68e7e90f34a59314c514c6f..80ad423ce037229132e5ef45e73d6ddf5915e021 100755 (executable)
@@ -32,7 +32,7 @@ my @Tests =
    ['f-extra-arg', '--files0-from=- no-such', {IN=>"a"}, {EXIT=>2},
     {ERR => "$prog: extra operand `no-such'\n"
         . "file operands cannot be combined with --files0-from\n"
-        . "Try `$prog --help' for more information.\n"}
+        . "Try '$prog --help' for more information.\n"}
     ],
 
    # missing input file
index 0bc2a2ca2aa8eb12c1c5a402c5b03c7a26fef4a3..88fcec50ad030a3823c7937186caf5e8c2e80403 100755 (executable)
@@ -55,7 +55,7 @@ my @Tests =
    ['only-one', {IN => {f => ""}}, {IN => {g => ""}},
     {EXIT => 1},
     {ERR => "tsort: extra operand `g'\n"
-     . "Try `tsort --help' for more information.\n"}],
+     . "Try 'tsort --help' for more information.\n"}],
   );
 
 my $save_temps = $ENV{DEBUG};
index 5083be5595532bfaee8b1462023e22ed80cde5b9..84e1c48e57e93efb1042eff96884b2da9f226ee4 100755 (executable)
@@ -21,7 +21,7 @@ use strict;
 my $limits = getlimits ();
 
 my $prog = 'uniq';
-my $try = "Try \`$prog --help' for more information.\n";
+my $try = "Try '$prog --help' for more information.\n";
 
 # Turn off localization of executable's output.
 @ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
index 4d21b7bf4010de36d9376a5e9586146663e7d0aa..ac2211345a4e892b06e94e647d592b0a32a8a1c8 100755 (executable)
@@ -32,7 +32,7 @@ my @Tests =
    ['f-extra-arg', '--files0-from=- no-such', {IN=>"a"}, {EXIT=>1},
     {ERR => "$prog: extra operand `no-such'\n"
         . "file operands cannot be combined with --files0-from\n"
-        . "Try `$prog --help' for more information.\n"}
+        . "Try '$prog --help' for more information.\n"}
     ],
 
    # missing input file
index f30ba92ad36fcad0e27bb4444b868def37884b66..c8ba7f3e7d7e61b80ff61b77ab6489ae38003771 100755 (executable)
@@ -36,9 +36,9 @@ mv --target=f2 f1 >> out 2>&1 && fail=1
 
 cat > exp <<\EOF
 mv: missing file operand
-Try `mv --help' for more information.
+Try 'mv --help' for more information.
 mv: missing destination file operand after `no-file'
-Try `mv --help' for more information.
+Try 'mv --help' for more information.
 mv: target `f1' is not a directory
 mv: target `f2' is not a directory
 EOF