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/ln | |
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/ln')
-rwxr-xr-x | tests/ln/hard-backup | 2 | ||||
-rwxr-xr-x | tests/ln/hard-to-sym | 6 | ||||
-rwxr-xr-x | tests/ln/target-1 | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/ln/hard-backup b/tests/ln/hard-backup index 65bf1f15a..bc38bbe5d 100755 --- a/tests/ln/hard-backup +++ b/tests/ln/hard-backup @@ -24,7 +24,7 @@ touch f || framework_failure_ ln --backup f f 2> out && fail=1 cat <<\EOF > exp || fail=1 -ln: `f' and `f' are the same file +ln: 'f' and 'f' are the same file EOF compare exp out || fail=1 diff --git a/tests/ln/hard-to-sym b/tests/ln/hard-to-sym index 5a3f1762c..3ea4570b1 100755 --- a/tests/ln/hard-to-sym +++ b/tests/ln/hard-to-sym @@ -53,7 +53,7 @@ esac ln -s /no-such-dir || framework_failure_ ln -L no-such-dir hard-to-dangle 2>err && fail=1 case `cat err` in - *' accessing `no-such-dir'\':*) ;; + *' accessing 'no-such-dir'\':*) ;; *) fail=1 ;; esac ln -P no-such-dir hard-to-dangle || fail=1 @@ -64,12 +64,12 @@ mkdir d || framework_failure_ ln -s d link-to-dir || framework_failure_ ln -L link-to-dir hard-to-dir-link 2>err && fail=1 case `cat err` in - *': `link-to-dir'\'': hard link not allowed for directory'*) ;; + *': 'link-to-dir'\'': hard link not allowed for directory'*) ;; *) fail=1 ;; esac ln -P link-to-dir/ hard-to-dir-link 2>err && fail=1 case `cat err` in - *': `link-to-dir/'\'': hard link not allowed for directory'*) ;; + *': 'link-to-dir/'\'': hard link not allowed for directory'*) ;; *) fail=1 ;; esac ln -P link-to-dir hard-to-dir-link || fail=1 diff --git a/tests/ln/target-1 b/tests/ln/target-1 index 72c46f203..87dfbf0cd 100755 --- a/tests/ln/target-1 +++ b/tests/ln/target-1 @@ -18,7 +18,7 @@ # Before coreutils-4.5.3, --target-dir didn't work with one file. # It would create the desired link, but would fail with a diagnosis like this: -# ln: `d/.': cannot overwrite directory +# ln: 'd/.': cannot overwrite directory # Based on a test case from Dmitry V. Levin. . "${srcdir=.}/init.sh"; path_prepend_ ../src |