]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: adjust \`...' quoting to '...' to adapt to latest gnulib
authorJim Meyering <meyering@redhat.com>
Sat, 7 Jan 2012 16:43:50 +0000 (17:43 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 9 Jan 2012 20:50:08 +0000 (21:50 +0100)
Run this:
  git grep -l "\\\\\`[^']*'" tests \
    |xargs perl -pi -e 's/\\\`(.*?'\'')/'\''$1/g

36 files changed:
tests/chgrp/no-x
tests/chmod/c-option
tests/chmod/equal-x
tests/chmod/no-x
tests/chmod/thru-dangling
tests/chown/basic
tests/cp/abuse
tests/cp/cp-i
tests/cp/thru-dangling
tests/dd/skip-seek-past-dev
tests/dd/skip-seek-past-file
tests/du/no-x
tests/du/slink
tests/id/gnu-zero-uids
tests/init.cfg
tests/install/install-C
tests/install/install-C-root
tests/install/install-C-selinux
tests/misc/help-version
tests/misc/ls-time
tests/misc/truncate-fail-diag
tests/misc/uniq
tests/mkdir/selinux
tests/mv/dup-source
tests/mv/force
tests/mv/i-2
tests/mv/i-3
tests/mv/mv-n
tests/mv/mv-special-1
tests/mv/part-fail
tests/mv/trailing-slash
tests/rm/rm3
tests/rm/unreadable
tests/split/l-chunk
tests/touch/fail-diag
tests/touch/not-owner

index 56357fe848734041c91a91eb68dc3b26a6d3b075..200fa32210df753b6168b39934e8e15322b29dea 100755 (executable)
@@ -46,7 +46,7 @@ sed "s/^$prog: cannot read directory /$prog: /" out > t && mv t out
 sed 's,d/no-x/y,d/no-x,' out > t && mv t out
 
 cat <<EOF > exp
-$prog: \`d/no-x': Permission denied
+$prog: 'd/no-x': Permission denied
 EOF
 
 compare exp out || fail=1
index 525c8cb3b107409305da57b38b6922cc15a3fb5f..e2fbf0768cdd6d1293c3a0fc8a9027352f65db8d 100755 (executable)
@@ -33,7 +33,7 @@ chmod -c g=rwx $file > empty || fail=1
 
 test -s empty && fail=1
 case "`cat out`" in
-  "mode of \`f' changed from 0744 "?rwxr--r--?" to 0774 "?rwxrwxr--?) ;;
+  "mode of 'f' changed from 0744 "?rwxr--r--?" to 0774 "?rwxrwxr--?) ;;
   *) cat out; fail=1 ;;
 esac
 
index 76783ebee94f1e7056705f313bc943dbce0bc2aa..e846fc3d111d69c9aa8bda0cb94e3fde2e045175 100755 (executable)
@@ -27,7 +27,7 @@ for mode in =x =xX =Xx =x,=X =X,=x; do
   chmod a=r,$mode $file || fail=1
   case "`ls -l $file`" in
     ---x--x---*) ;;
-    *) fail=1; echo "after \`chmod $mode $file':"; ls -l $file ;;
+    *) fail=1; echo "after 'chmod $mode $file':"; ls -l $file ;;
   esac
 done
 
index 41ec75772bd2085ad2a60eb3fcebf13b552352ea..3a68eeaa9fc287790183a2bcca2b4e8e482cf042 100755 (executable)
@@ -41,7 +41,7 @@ sed "s/^$prog: cannot read directory /$prog: /" out > t && mv t out
 sed 's,d/no-x/y,d/no-x,' out > t && mv t out
 
 cat <<EOF > exp
-$prog: \`d/no-x': Permission denied
+$prog: 'd/no-x': Permission denied
 EOF
 
 compare exp out || fail=1
index f8c02f552e81ff1c951f5c6a1c9f457764d5dbfb..78124009fafa227466d6483fd7dc107371e80f09 100755 (executable)
@@ -25,7 +25,7 @@ ln -s non-existent dangle || framework_failure_
 # This operation cannot succeed since the symbolic link dangles.
 chmod 644 dangle 2> out && fail=1
 
-echo "chmod: cannot operate on dangling symlink \`dangle'" > exp
+echo "chmod: cannot operate on dangling symlink 'dangle'" > exp
 compare exp out || fail=1
 
 Exit $fail
index d602e188b0de3aa129e544176ff25c9ba0fdd465..f5958b768d07c748ae69b34f263656b629170d1a 100755 (executable)
@@ -30,12 +30,12 @@ set _ `ls -n f`; shift; test "$3:$4" = 0:1 || fail=1
 # Make sure the correct diagnostic is output
 # Note we output a name even though an id was specified.
 chown -v --from=42 43 f > out || fail=1
-printf "ownership of \`f' retained as `id -nu`\n" > exp
+printf "ownership of 'f' retained as `id -nu`\n" > exp
 compare exp out || fail=1
 
 # Ensure diagnostics work for non existent files.
 chown -v 0 nf > out && fail=1
-printf "failed to change ownership of \`nf' to 0\n" > exp
+printf "failed to change ownership of 'nf' to 0\n" > exp
 compare exp out || fail=1
 
 chown --from=0:1 2:010 f || fail=1
index e569222bc9854ac6a8546f08b1e5e5769b06de1d..6338e1f57792b383c617fc25e43eefc294bec537 100755 (executable)
@@ -23,7 +23,7 @@ mkdir a b c || framework_failure_
 ln -s ../t a/1 || framework_failure_
 echo payload > b/1 || framework_failure_
 
-echo "cp: will not copy \`b/1' through just-created symlink \`c/1'" \
+echo "cp: will not copy 'b/1' through just-created symlink 'c/1'" \
   > exp || framework_failure_
 
 # Check both cases: a dangling symlink, and one pointing to a writable file.
index 030f652d7baceb335a77a8eb991eb2e3cf15c643..746dc2765ef52b0f3c0eed4b754015ded04d213c 100755 (executable)
@@ -28,7 +28,7 @@ echo n | cp -iR a b 2>/dev/null || fail=1
 
 # test miscellaneous combinations of -f -i -n parameters
 touch c d || framework_failure_
-echo "\`c' -> \`d'" > out_copy
+echo "'c' -> 'd'" > out_copy
 > out_empty
 
 # ask for overwrite, answer no
index 4d17ec3bedaac9c52cceed38bccd51bb49683d3a..f8527af8d0dd5fdd16a36dfde5a2af184615f331 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ cp
 ln -s no-such dangle || framework_failure_
 echo hi > f || framework_failure_
 echo hi > exp || framework_failure_
-echo "cp: not writing through dangling symlink \`dangle'" \
+echo "cp: not writing through dangling symlink 'dangle'" \
     > exp-err || framework_failure_
 
 
index a8e0a2f72c24971b081a2d31589ce44a88691a3d..f4184b1bf6e5c57c0693653e359acf4ff8c103f3 100755 (executable)
@@ -43,14 +43,14 @@ DEV_OFLOW=$(expr $dev_size + 1)
 
 timeout 10 dd bs=1 skip=$DEV_OFLOW count=0 status=noxfer < "$device" 2> err
 test "$?" = "1" || fail=1
-echo "dd: \`standard input': cannot skip: Invalid argument
+echo "dd: 'standard input': cannot skip: Invalid argument
 0+0 records in
 0+0 records out" > err_ok || framework_failure_
 compare err_ok err || fail=1
 
 timeout 10 dd bs=1 seek=$DEV_OFLOW count=0 status=noxfer > "$device" 2> err
 test "$?" = "1" || fail=1
-echo "dd: \`standard output': cannot seek: Invalid argument
+echo "dd: 'standard output': cannot seek: Invalid argument
 0+0 records in
 0+0 records out" > err_ok || framework_failure_
 compare err_ok err || fail=1
index 46d915645835227c0684d2be9c06a17f1075880e..ea8f1c9af22189f7f0c33e6a992a9b314c71e303 100755 (executable)
@@ -25,7 +25,7 @@ eval $(getlimits) # for OFF_T limits
 printf "1234" > file || framework_failure_
 
 echo "\
-dd: \`standard input': cannot skip to specified offset
+dd: 'standard input': cannot skip to specified offset
 0+0 records in
 0+0 records out" > skip_err || framework_failure_
 
index 1737c01249e2f8da975e03202eee2e7aeb203127..9ba70770dc07fa9d8c170d03ac3cacae12bba33a 100755 (executable)
@@ -41,7 +41,7 @@ sed "s/^$prog: cannot read directory /$prog: /" out > t && mv t out
 sed 's,d/no-x/y,d/no-x,' out > t && mv t out
 
 cat <<EOF > exp
-$prog: \`d/no-x': Permission denied
+$prog: 'd/no-x': Permission denied
 EOF
 
 compare exp out || fail=1
index 4117d8ee07166f47e6989b7a85aaae515219de5a..99677f96c4506ee2b3eab49019cdfdfdfa38b039 100755 (executable)
@@ -27,7 +27,7 @@ require_local_dir_
 if df --type=xfs . >/dev/null 2>&1; then
   # At least on Irix-6.5.19, when using an xfs file system,
   # each created symlink (name lengths up to 255) would have a size of `0'.
-  skip_ "\`.' is on an XFS file system"
+  skip_ "'.' is on an XFS file system"
 fi
 
 symlink_name_lengths='1 15 16 31 32 59 60 63 64 127 128 255 256 511 512 1024'
index 937f8a8e22501741a956a9eb1a0ac3344a49ecd8..858004c65db4e99d57463469d599f2c690713323 100755 (executable)
@@ -21,7 +21,7 @@ print_ver_ id
 
 require_gnu_
 
-sush - true || skip_ "the \`sush' command does not work"
+sush - true || skip_ "the 'sush' command does not work"
 
 # Run `id' with zero UIDs.  It should exit with a non-zero status.
 sush - id > out && fail=1
index 50c752bcab8f9e273679fff408f0f59e5cf1932c..437969840b3e6d0b0aefdac4ec1a5d4a124ffb80 100644 (file)
@@ -191,13 +191,13 @@ uid_is_privileged_()
 {
   # Make sure id -u succeeds.
   my_uid=$(id -u) \
-    || { echo "$0: cannot run \`id -u'" 1>&2; return 1; }
+    || { echo "$0: cannot run 'id -u'" 1>&2; return 1; }
 
   # Make sure it gives valid output.
   case $my_uid in
     0) ;;
     *[!0-9]*)
-      echo "$0: invalid output (\`$my_uid') from \`id -u'" 1>&2
+      echo "$0: invalid output ('$my_uid') from 'id -u'" 1>&2
       return 1 ;;
     *) return 1 ;;
   esac
index 67921da5fb24be4661092f133d7215b1535cf68b..0883d9e6b8c8e912056221aea16bdafb6ede69a4 100755 (executable)
@@ -26,9 +26,9 @@ mode3=2755
 
 
 echo test > a || framework_failure_
-echo "\`a' -> \`b'" > out_installed_first || framework_failure_
-echo "removed \`b'
-\`a' -> \`b'" > out_installed_second || framework_failure_
+echo "'a' -> 'b'" > out_installed_first || framework_failure_
+echo "removed 'b'
+'a' -> 'b'" > out_installed_second || framework_failure_
 : > out_empty || framework_failure_
 
 # destination file does not exist
@@ -57,8 +57,8 @@ compare out out_installed_second || fail=1
 ln -s a c || framework_failure_
 ln -s b d || framework_failure_
 ginstall -Cv -m$mode1 c d > out || fail=1
-echo "removed \`d'
-\`c' -> \`d'" > out_installed_second_cd
+echo "removed 'd'
+'c' -> 'd'" > out_installed_second_cd
 compare out out_installed_second_cd || fail=1
 
 # destination file exists but content differs
index 86f0814702f2a7c5c969199a4eb628cb8d62c5ea..5fbae058a92840e4e28e524e53ae04e0329f9c4a 100755 (executable)
@@ -28,9 +28,9 @@ g2=2
 
 
 echo test > a || framework_failure_
-echo "\`a' -> \`b'" > out_installed_first
-echo "removed \`b'
-\`a' -> \`b'" > out_installed_second
+echo "'a' -> 'b'" > out_installed_first
+echo "removed 'b'
+'a' -> 'b'" > out_installed_second
 > out_empty
 
 # destination file does not exist
index 5529793758992a931f89dc23822591fa64ed70c2..db2a5d227dbc166267b619d622aa39994ae03d64 100755 (executable)
@@ -24,9 +24,9 @@ require_selinux_
 echo test > a || framework_failure_
 chcon -u system_u a || skip_ "chcon doesn't work"
 
-echo "\`a' -> \`b'" > out_installed_first
-echo "removed \`b'
-\`a' -> \`b'" > out_installed_second
+echo "'a' -> 'b'" > out_installed_first
+echo "removed 'b'
+'a' -> 'b'" > out_installed_second
 > out_empty
 
 # destination file does not exist
index bba6d3663894f29e61d1a094a0cdc32e12a71065..b93eb379672487979a08e5d4b5fb7b9ef956117a 100755 (executable)
@@ -107,7 +107,7 @@ for lang in C fr da; do
         : # ok
       else
         fail=1
-        echo "*** $i: bad exit status \`$status' (expected $expected)," 1>&2
+        echo "*** $i: bad exit status '$status' (expected $expected)," 1>&2
         echo "  with --help or --version output redirected to /dev/full" 1>&2
       fi
     fi
index 8bf3a5e9d08ee87ddbb3a9486a5775d134764500..6a227c4d94ba8914d6240701f16294ca3cc02b84 100755 (executable)
@@ -64,7 +64,7 @@ case "$*" in
 A basic test of touch -m has just failed, so the subsequent
 tests in this file will not be run.
 
-In the output below, the date of last modification for \`a' should
+In the output below, the date of last modification for 'a' should
 have been $t3.
 EOF
   #`
@@ -83,7 +83,7 @@ case "$*" in
 A fundamental touch -a test has just failed, so the subsequent
 tests in this file will not be run.
 
-In the output below, the date of last access for \`a' should
+In the output below, the date of last access for 'a' should
 have been $u1.
 EOF
   ls --full -lu a
index 7cc6a63d9d75e4d9279111144e108824d0297256..f9cdabf389e044a1c7fd524e4167be6616650225 100755 (executable)
@@ -30,14 +30,14 @@ d1=no
 dir=$d1/such-dir
 truncate -s0 $dir > out 2>&1 && fail=1
 cat <<EOF > exp
-truncate: cannot open \`$dir' for writing: No such file or directory
+truncate: cannot open '$dir' for writing: No such file or directory
 EOF
 compare exp out || fail=1
 
 dir=$d1/
 truncate -s0 $dir > out 2>&1 && fail=1
 #The following can be returned at least
-#truncate: cannot open \`$dir' for writing: Not a directory
-#truncate: cannot open \`$dir' for writing: Is a directory
+#truncate: cannot open '$dir' for writing: Not a directory
+#truncate: cannot open '$dir' for writing: Is a directory
 
 Exit $fail
index 84e1c48e57e93efb1042eff96884b2da9f226ee4..f7211a330ba0e3b4a61b4a3047a2fc634ff0c02a 100755 (executable)
@@ -186,11 +186,11 @@ my @Tests =
   {IN=>"a\na\nb\nc\nc\n"}, {OUT=>"\na\na\n\nc\nc\n"}],
  ['118', '--all-repeated=prepend', {IN=>"a\nb\n"}, {OUT=>""}],
  ['119', '--all-repeated=badoption', {IN=>"a\n"}, {OUT=>""}, {EXIT=>1},
-  {ERR=>"$prog: invalid argument \`badoption' for \`--all-repeated'\n"
+  {ERR=>"$prog: invalid argument 'badoption' for '--all-repeated'\n"
         . "Valid arguments are:\n"
-        . "  - \`none'\n"
-        . "  - \`prepend'\n"
-        . "  - \`separate'\n"
+        . "  - 'none'\n"
+        . "  - 'prepend'\n"
+        . "  - 'separate'\n"
         . $try}],
  # Check that -d and -u suppress all output, as POSIX requires.
  ['120', qw(-d -u), {IN=>"a\na\n\b"}, {OUT=>""}],
index ddca178a10e5cb483ee61c745ea21f6bc1457a1d..763236259b2c910d212c3d5c5d9d46510e2d4ddf 100755 (executable)
@@ -25,7 +25,7 @@ print_ver_ mkdir mkfifo mknod
 require_selinux_enforcing_
 
 c=invalid-selinux-context
-msg="failed to set default file creation context to \`$c':"
+msg="failed to set default file creation context to '$c':"
 
 # Test each of mkdir, mknod, mkfifo with "-Z invalid-context".
 
index a6a1f5cceec5167db804a940b2bb1e66cc3c9916..7a34472d8aff86c99bdc15aad9d141e0ff16f961 100755 (executable)
@@ -41,9 +41,9 @@ for i in cp; do
   rm -fr a d; touch a; mkdir d
   $i --backup a a d/ 2>> out && fail=1
   cat <<EOF > exp
-$i: warning: source file \`a' specified more than once
-$i: warning: source file \`a' specified more than once
-$i: will not overwrite just-created \`d/a' with \`a'
+$i: warning: source file 'a' specified more than once
+$i: warning: source file 'a' specified more than once
+$i: will not overwrite just-created 'd/a' with 'a'
 EOF
   compare exp out || fail=1
 done
@@ -56,8 +56,8 @@ for i in mv; do
   rm -fr a d; touch a; mkdir d
   $i ./a a d/ 2>> out && fail=1
   cat <<EOF > exp
-$i: cannot stat \`a': No such file or directory
-$i: cannot stat \`a': No such file or directory
+$i: cannot stat 'a': No such file or directory
+$i: cannot stat 'a': No such file or directory
 EOF
   compare exp out || fail=1
 done
index d4b3a16a3c8ee1c95a83e08e16a5409a6be24c01..320ab563b019eddb879fbeaa1c17090885852643 100755 (executable)
@@ -29,7 +29,7 @@ ln $ff $ff2 || framework_failure_
 mv $ff $ff > out 2>&1 && fail=1
 
 cat > exp <<EOF
-mv: \`$ff' and \`$ff' are the same file
+mv: '$ff' and '$ff' are the same file
 EOF
 
 compare exp out || fail=1
index 47eef6faf79f9ee79ce3522a272d5852a2ba0da5..875c72134cc513b7b8c4d1ecec817730fdba66ed 100755 (executable)
@@ -36,7 +36,7 @@ cp -if e f < y > out 2>&1 || fail=1
 
 # Make sure out contains the prompt.
 case "`cat out`" in
-  "cp: try to overwrite \`f', overriding mode 0000 (---------)?"*) ;;
+  "cp: try to overwrite 'f', overriding mode 0000 (---------)?"*) ;;
   *) fail=1 ;;
 esac
 
index 33176e4890db0091601b95c1c6a599176814c25d..1851d42d86ef91191d056845e8d056b6a7f0f483 100755 (executable)
@@ -46,7 +46,7 @@ check_overwrite_prompt()
 {
   local delay="$1"
   case "`cat out`" in
-    "mv: try to overwrite \`g', overriding mode 0000"*) ;;
+    "mv: try to overwrite 'g', overriding mode 0000"*) ;;
     *) sleep $delay; return 1;;
   esac
 }
index fff97fd9f8b548511e4051348debf185f1e5aca3..9a9b1156aa8d083729ea89492e8794f24e63f026 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ mv
 
 # test miscellaneous combinations of -f -i -n parameters
 touch a b || framework_failure_
-echo "\`a' -> \`b'" > out_move
+echo "'a' -> 'b'" > out_move
 > out_empty
 
 # ask for overwrite, answer no
index 64ac0ff0bc58dc6094a0bf1be2cbd5f5fa74f96b..02b681e247515851a806dfb113798f11ea81de69 100755 (executable)
@@ -52,16 +52,16 @@ sed "
 " out | sort > out2
 
 cat <<EOF | sort > exp
-\`$null' -> \`XXX/$null'
-\`$dir' -> \`XXX/$dir'
-\`$dir/a' -> \`XXX/$dir/a'
-\`$dir/a/b' -> \`XXX/$dir/a/b'
-\`$dir/a/b/c' -> \`XXX/$dir/a/b/c'
-\`$dir/a/b/c/file1' -> \`XXX/$dir/a/b/c/file1'
-\`$dir/d' -> \`XXX/$dir/d'
-\`$dir/d/e' -> \`XXX/$dir/d/e'
-\`$dir/d/e/f' -> \`XXX/$dir/d/e/f'
-\`$dir/d/e/f/file2' -> \`XXX/$dir/d/e/f/file2'
+'$null' -> 'XXX/$null'
+'$dir' -> 'XXX/$dir'
+'$dir/a' -> 'XXX/$dir/a'
+'$dir/a/b' -> 'XXX/$dir/a/b'
+'$dir/a/b/c' -> 'XXX/$dir/a/b/c'
+'$dir/a/b/c/file1' -> 'XXX/$dir/a/b/c/file1'
+'$dir/d' -> 'XXX/$dir/d'
+'$dir/d/e' -> 'XXX/$dir/d/e'
+'$dir/d/e/f' -> 'XXX/$dir/d/e/f'
+'$dir/d/e/f/file2' -> 'XXX/$dir/d/e/f/file2'
 EOF
 
 compare exp out2 || fail=1
index 4fe6ddc4e0da533bda7043040a256fd4e5cde4fd..ed74e02b5961ea87a41f1662afa02f1a1c22ec0b 100755 (executable)
@@ -38,7 +38,7 @@ printf \
 # On some (less-compliant) systems, we get EPERM in this case.
 # Accept either diagnostic.
 cat <<EOF > exp2
-mv: cannot move \`k' to \`$other_partition_tmpdir/k': Permission denied
+mv: cannot move 'k' to '$other_partition_tmpdir/k': Permission denied
 EOF
 
 if cmp out exp >/dev/null 2>&1; then
index ae5079b47564531928f59a9f10755f7355e01a2a..5bae2f5c6e858e660cd1629735774828f7dcf13a 100755 (executable)
@@ -52,7 +52,7 @@ done
 
 # Test for a cp-specific diagnostic introduced after coreutils-8.7:
 printf '%s\n' \
-  "cp: cannot create regular file \`no-such/': Not a directory" \
+  "cp: cannot create regular file 'no-such/': Not a directory" \
 > expected-err
 touch b
 cp b no-such/ 2> err && fail=1
index 06a93f583b5e4e8433f395dab938e88317de7d57..17118d1fe64b5abbf5cc2dc5c73ba50bb34c3add 100755 (executable)
@@ -55,15 +55,15 @@ tr '?' '\n' < out | head --bytes=-1 | sed 's/^ //' |sort > o2
 mv o2 out
 
 sort <<EOF > exp || fail=1
-rm: descend into directory \`z'
-rm: remove regular empty file \`z/empty'
-rm: remove write-protected regular file \`z/fu'
-rm: remove write-protected regular empty file \`z/empty-u'
-rm: remove symbolic link \`z/slink'
-rm: remove symbolic link \`z/slinkdot'
-rm: remove directory \`z/d'
-rm: remove write-protected directory \`z/du'
-rm: remove directory \`z'
+rm: descend into directory 'z'
+rm: remove regular empty file 'z/empty'
+rm: remove write-protected regular file 'z/fu'
+rm: remove write-protected regular empty file 'z/empty-u'
+rm: remove symbolic link 'z/slink'
+rm: remove symbolic link 'z/slinkdot'
+rm: remove directory 'z/d'
+rm: remove write-protected directory 'z/du'
+rm: remove directory 'z'
 EOF
 
 compare exp out || fail=1
index 1ef9e9c62e97d45df3b6f35595387d00f82e544b..e5158273b7b141ae97a572ad1642698b00e3f69c 100755 (executable)
@@ -38,7 +38,7 @@ my @Tests =
      ['unreadable-2', '-rf', $d,
       {EXIT => $uid == 0 ? 0 : 1},
       {ERR => $uid == 0 ? ''
-                        : "$prog: cannot remove \`$d': Permission denied\n"},
+                        : "$prog: cannot remove '$d': Permission denied\n"},
       {PRE => sub { (mkdir $d,0700 and mkdir "$d/x",0700 and chmod 0100,$d)
                     or die "$d: $!\n"}} ],
     );
index c4e696815f6203fdea8482f07a6ad8e9d8a90f90..8199883a4671f4660c4aa8c94e7691bc26fdbca2 100755 (executable)
@@ -24,7 +24,7 @@ echo 'split: 1o: invalid number of chunks' > exp
 split -n l/1o 2>err && fail=1
 compare exp err || fail=1
 
-echo "split: \`-': cannot determine file size" > exp
+echo "split: '-': cannot determine file size" > exp
 echo | split -n l/1 2>err && fail=1
 compare exp err || fail=1
 
index d42ee3774a9ecd021ee3e97100698d1919de2325..6cdc1e2af519a54a2739485a17113745c86361da 100755 (executable)
@@ -24,7 +24,7 @@ file=/no-such-dir/file
 
 touch $file > out 2>&1 && fail=1
 cat <<EOF > exp
-touch: cannot touch \`$file': No such file or directory
+touch: cannot touch '$file': No such file or directory
 EOF
 
 compare exp out || fail=1
index 3637111a514fe6794a6d73487c1e2428800a8812..3aba5f0a01bc731d2fa05de4f64a5a49d88fcf6c 100755 (executable)
@@ -43,7 +43,7 @@ touch / > out 2>&1 && fail=1
 for msg in 'Not owner' 'Operation not permitted' 'Permission denied' \
            'Read-only file system'; do
   cat > exp <<EOF
-touch: setting times of \`/': $msg
+touch: setting times of '/': $msg
 EOF
 
   cmp out exp > /dev/null 2>&1 && { match=1; break; }