]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: fix recent stale comments and spelling mistakes
authorPádraig Brady <P@draigBrady.com>
Thu, 28 Jun 2018 01:09:11 +0000 (18:09 -0700)
committerPádraig Brady <P@draigBrady.com>
Sun, 1 Jul 2018 01:56:39 +0000 (18:56 -0700)
* doc/coreutils.texi: s/seperator/separator/.
* tests/misc/env-S.pl: Likewise.
* src/env.c: Fix stale comment.

doc/coreutils.texi
src/env.c
tests/misc/env-S.pl

index 9ac82f8875ea4d2fbcfc6e6a7dadc99d9f1436c3..10fd023d80dba890aced0e9e3220fbaf74f54872 100644 (file)
@@ -17341,7 +17341,7 @@ This escape sequence works inside single-quoted strings.
 @end multitable
 
 The following @command{awk} script will use tab character as input and output
-field seperator (instead of spaces and tabs):
+field separator (instead of spaces and tabs):
 
 @example
 $ cat tabs.awk
index 1915e79aac390655ed4f0cdb3758ebc4c863e000..d1797870fd6841845b7ab533b14a348ec583bb35 100644 (file)
--- a/src/env.c
+++ b/src/env.c
@@ -566,7 +566,7 @@ main (int argc, char **argv)
           break;
         case ' ':
         case '\t':
-          /* Space,tab,dash are undocumented options. Attempt to detect
+          /* These are undocumented options. Attempt to detect
              incorrect shebang usage with extraneous space, e.g.:
                 #!/usr/bin/env -i command
              In which case argv[1] == "-i command".  */
index 5c3715b6b4b101aff659aaf0f05586fa424e8262..75fc593c959de8b08b4e9f50fcc304db25a2bed4 100755 (executable)
@@ -139,7 +139,7 @@ my @Tests =
      ['d11', q[-S'echo FOO \\#BAR'],    {OUT=>"FOO #BAR"}],
      ['d12', q[-S'echo FOO#BAR'],       {OUT=>"FOO#BAR"}],
 
-     # Test underscore as space/seperator in double/single/no quotes
+     # Test underscore as space/separator in double/single/no quotes
      ['s1',  q[-S'printf x%sx\\n "A\\_B"'],   {OUT=>"xA Bx"}],
      ['s2',  q[-S"printf x%sx\\n 'A\\_B'"],   {OUT=>"xA\\_Bx"}],
      ['s3',  q[-S"printf x%sx\\n A\\_B"],     {OUT=>"xAx\nxBx"}],