diff options
author | Jim Meyering <meyering@redhat.com> | 2012-01-07 17:47:58 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-01-09 21:50:08 +0100 |
commit | dd0e4c5621ca2fa9255aef4eee0e7cf41cd335d2 (patch) | |
tree | 5194ff517669cfb08a3ba329658b45870ab063bd /tests/chmod | |
parent | 50610144b02763f5dd5f6198ceceb88c27c393aa (diff) | |
download | coreutils-dd0e4c5621ca2fa9255aef4eee0e7cf41cd335d2.tar.xz |
tests: change `...' to '...' on lines not matching /[=\$]/
Exempt lines with '$' or '=', since those are prone to improper
conversion. Run this:
git grep -l "\`[^']*'" tests \
|xargs perl -pi -e '/[=\$]/ and next;s/\`([^'\''"]*?'\'')/'\''$1/g'
Diffstat (limited to 'tests/chmod')
-rwxr-xr-x | tests/chmod/no-x | 8 | ||||
-rwxr-xr-x | tests/chmod/octal | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/chmod/no-x b/tests/chmod/no-x index 3a68eeaa9..cc0d14268 100755 --- a/tests/chmod/no-x +++ b/tests/chmod/no-x @@ -32,9 +32,9 @@ prog=chmod # NOTE: this code is the same for all tests/*/no-x tests. # Depending on whether fts is using native fdopendir, we see one # of the following diagnostics (note also the /y suffix in one case): -# prog: `d/no-x': Permission denied -# prog: cannot access `d/no-x/y': Permission denied -# prog: cannot read directory `d/no-x': Permission denied +# prog: 'd/no-x': Permission denied +# prog: cannot access 'd/no-x/y': Permission denied +# prog: cannot read directory 'd/no-x': Permission denied # Convert either of the latter two to the first one. sed "s/^$prog: cannot access /$prog: /" out > t && mv t out sed "s/^$prog: cannot read directory /$prog: /" out > t && mv t out @@ -47,7 +47,7 @@ EOF compare exp out || fail=1 cd a -# This will fail with ``chmod: fts_read failed: Permission denied'' +# This will fail with '`chmod: fts_read failed: Permission denied'' chmod a-x . b 2> /dev/null && fail=1 # chmod must exit with status 1. # Due to a bug in coreutils-5.93's fts.c, chmod would provoke diff --git a/tests/chmod/octal b/tests/chmod/octal index 3e6c02a61..845116b26 100755 --- a/tests/chmod/octal +++ b/tests/chmod/octal @@ -21,7 +21,7 @@ print_ver_ chmod # Before coreutils-5.92, this would mistakenly succeed, -# and act like `chmod 0 .'. +# and act like 'chmod 0 .'. chmod 0-followed-by-anything . 2> /dev/null && fail=1 chmod 7-followed-by-anything . 2> /dev/null && fail=1 chmod 8 . 2> /dev/null && fail=1 |