From dd0e4c5621ca2fa9255aef4eee0e7cf41cd335d2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 7 Jan 2012 17:47:58 +0100 Subject: 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' --- tests/ln/hard-to-sym | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/ln/hard-to-sym') 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 -- cgit v1.2.3-70-g09d2