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/cp/into-self | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/cp/into-self') diff --git a/tests/cp/into-self b/tests/cp/into-self index 792e659f8..67cec7f95 100755 --- a/tests/cp/into-self +++ b/tests/cp/into-self @@ -16,10 +16,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# In 4.0.35 and earlier, `mkdir dir && cp -R dir dir' would produce this: -# cp: won't create hard link `dir/dir/dir' to directory `' +# In 4.0.35 and earlier, 'mkdir dir && cp -R dir dir' would produce this: +# cp: won't create hard link 'dir/dir/dir' to directory '' # Now it gives this: -# cp: can't copy a directory `dir' into itself `dir/dir' +# cp: can't copy a directory 'dir' into itself 'dir/dir' . "${srcdir=.}/init.sh"; path_prepend_ ../src print_ver_ cp @@ -41,13 +41,13 @@ cp -rl a dir dir 2>> out && fail=1 echo 4 >> out cat > exp <<\EOF -cp: cannot copy a directory, `dir', into itself, `dir/dir' +cp: cannot copy a directory, 'dir', into itself, 'dir/dir' 1 -cp: cannot copy a directory, `dir', into itself, `dir/dir' +cp: cannot copy a directory, 'dir', into itself, 'dir/dir' 2 -cp: cannot copy a directory, `dir', into itself, `dir/dir' +cp: cannot copy a directory, 'dir', into itself, 'dir/dir' 3 -cp: cannot copy a directory, `dir', into itself, `dir/dir' +cp: cannot copy a directory, 'dir', into itself, 'dir/dir' 4 EOF #' -- cgit v1.2.3-54-g00ecf