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/du/inacc-dest | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/du/inacc-dest') diff --git a/tests/du/inacc-dest b/tests/du/inacc-dest index 61e01d8a2..c9c709759 100755 --- a/tests/du/inacc-dest +++ b/tests/du/inacc-dest @@ -40,13 +40,13 @@ cat <<\EOF > exp || fail=1 ./c ./d ./e -du: cannot read directory `./c': Permission denied +du: cannot read directory './c': Permission denied EOF # Map a diagnostic like this -# du: cannot access `./c/j': Permission denied +# du: cannot access './c/j': Permission denied # to this: -# du: cannot access `./c': Permission denied +# du: cannot access './c': Permission denied # And accept "cannot read directory" in place of "cannot access" sed "s,/c/j': ,/c': ," out > t && mv t out sed 's,cannot access,cannot read directory,' out > t && mv t out -- cgit v1.2.3-54-g00ecf