]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: change `...' to '...' on lines not matching /[=\$]/
authorJim Meyering <meyering@redhat.com>
Sat, 7 Jan 2012 16:47:58 +0000 (17:47 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 9 Jan 2012 20:50:08 +0000 (21:50 +0100)
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'

155 files changed:
tests/Coreutils.pm
tests/Makefile.am
tests/chgrp/basic
tests/chgrp/deref
tests/chgrp/no-x
tests/chgrp/posix-H
tests/chmod/no-x
tests/chmod/octal
tests/chown/deref
tests/chown/preserve-root
tests/cp/backup-is-src
tests/cp/cp-a-selinux
tests/cp/cp-deref
tests/cp/cp-mv-backup
tests/cp/cp-mv-enotsup-xattr
tests/cp/fail-perm
tests/cp/fiemap-empty
tests/cp/fiemap-perf
tests/cp/into-self
tests/cp/link-preserve
tests/cp/no-deref-link1
tests/cp/no-deref-link2
tests/cp/no-deref-link3
tests/cp/perm
tests/cp/r-vs-symlink
tests/cp/same-file
tests/cp/slink-2-slink
tests/cp/special-bits
tests/cp/symlink-slash
tests/dd/misc
tests/du/2g
tests/du/8gb
tests/du/deref
tests/du/files0-from
tests/du/inacc-dest
tests/du/long-from-unreadable
tests/du/long-sloop
tests/du/no-x
tests/du/restore-wd
tests/du/slash
tests/du/slink
tests/du/two-args
tests/id/gnu-zero-uids
tests/init.cfg
tests/init.sh
tests/install/basic-1
tests/install/create-leading
tests/install/trap
tests/ln/hard-backup
tests/ln/hard-to-sym
tests/ln/target-1
tests/ls/follow-slink
tests/ls/no-arg
tests/ls/symlink-slash
tests/ls/time-style-diag
tests/misc/basename
tests/misc/chcon
tests/misc/csplit
tests/misc/cut
tests/misc/date
tests/misc/date-sec
tests/misc/dirname
tests/misc/expr
tests/misc/factor
tests/misc/help-version
tests/misc/ls-misc
tests/misc/ls-time
tests/misc/md5sum
tests/misc/md5sum-bsd
tests/misc/nice
tests/misc/nohup
tests/misc/od-N
tests/misc/printf
tests/misc/sha1sum
tests/misc/sha1sum-vec
tests/misc/sha224sum
tests/misc/sha256sum
tests/misc/sha384sum
tests/misc/sha512sum
tests/misc/sort
tests/misc/sort-compress
tests/misc/sort-debug-warn
tests/misc/sort-files0-from
tests/misc/stdbuf
tests/misc/stty
tests/misc/stty-row-col
tests/misc/sum-sysv
tests/misc/tail
tests/misc/test
tests/misc/timeout
tests/misc/wc-files0-from
tests/mkdir/p-v
tests/mkdir/parents
tests/mkdir/perm
tests/mv/backup-dir
tests/mv/backup-is-src
tests/mv/diag
tests/mv/dir2dir
tests/mv/dup-source
tests/mv/hard-3
tests/mv/hard-verbose
tests/mv/i-1
tests/mv/i-3
tests/mv/i-4
tests/mv/i-5
tests/mv/into-self
tests/mv/into-self-2
tests/mv/into-self-3
tests/mv/into-self-4
tests/mv/part-fail
tests/mv/part-symlink
tests/mv/perm-1
tests/mv/sticky-to-xpart
tests/mv/vfat
tests/pr/pr-tests
tests/rm/cycle
tests/rm/deep-1
tests/rm/dir-no-w
tests/rm/dir-nonrecur
tests/rm/empty-name
tests/rm/fail-2eperm
tests/rm/fail-eacces
tests/rm/i-no-r
tests/rm/inaccessible
tests/rm/interactive-always
tests/rm/isatty
tests/rm/no-give-up
tests/rm/one-file-system
tests/rm/r-1
tests/rm/r-2
tests/rm/readdir-bug
tests/rm/rm1
tests/rm/rm2
tests/rm/rm3
tests/rm/rm4
tests/rm/rm5
tests/rm/sunos-1
tests/rm/unread2
tests/rm/v-slash
tests/rmdir/fail-perm
tests/rmdir/t-slash
tests/shell-or-perl
tests/tail-2/F-vs-missing
tests/tail-2/F-vs-rename
tests/tail-2/assert
tests/tail-2/assert-2
tests/tail-2/big-4gb
tests/tail-2/follow-name
tests/tail-2/inotify-hash-abuse
tests/tail-2/proc-ksyms
tests/tail-2/tail-n0f
tests/tail-2/wait
tests/touch/60-seconds
tests/touch/empty-file
tests/touch/not-owner

index 81937c403e5cec5163161fd327516694f36fc0fb..7f4a0372c199f7c887dcf296485494c37f1ef492 100644 (file)
@@ -48,7 +48,7 @@ defined $ENV{DJDIR}
 # {filename => 'contents'} filename and contents
 # {filename => undef}      filename only -- $(srcdir)/filename must exist
 #
-# FIXME: If there is more than one input file, then you can't specify `REDIR'.
+# FIXME: If there is more than one input file, then you can't specify 'REDIR'.
 # PIPE is still ok.
 #
 # I/O spec: a hash ref with the following properties
@@ -60,9 +60,9 @@ defined $ENV{DJDIR}
 # {OUT => {'filename'=>undef}} compare contents of existing filename to
 #           stdout from cmd
 # {OUT => {'filename'=>[$CTOR, $DTOR]}} $CTOR and $DTOR are references to
-#           functions, each which is passed the single argument `filename'.
+#           functions, each which is passed the single argument 'filename'.
 #           $CTOR must create `filename'.
-#           DTOR may be omitted in which case `sub{unlink @_[0]}' is used.
+#           DTOR may be omitted in which case 'sub{unlink @_[0]}' is used.
 #           FIXME: implement this
 # {ERR => ...}
 #           Same as for OUT, but compare with stderr, not stdout.
@@ -213,10 +213,10 @@ sub getlimits()
 }
 
 # FIXME: cleanup on interrupt
-# FIXME: extract `do_1_test' function
+# FIXME: extract 'do_1_test' function
 
 # FIXME: having to include $program_name here is an expedient kludge.
-# Library code doesn't `die'.
+# Library code doesn't 'die'.
 sub run_tests ($$$$$)
 {
   my ($program_name, $prog, $t_spec, $save_temps, $verbose) = @_;
index 894fcf8a2da8d3f6333c5a79b39e8695f360a49a..8b670fc40703c5c936bde4ff73782b952800d72b 100644 (file)
@@ -53,7 +53,7 @@ check-root:
 
 check-recursive: root-hint
 
-# Advertise `check-root' target.
+# Advertise 'check-root' target.
 .PHONY: root-hint
 root-hint:
        @echo '***********************************************************'
index 4279d65a22890a6dab32c38dbb7d719275dd43c4..0cf0bca840f813ebf6cb7f019517aaa9cd2ba85c 100755 (executable)
@@ -66,7 +66,7 @@ chown --from=:$g1 :$g2 f; test `stat --printf=%g f` = $g2 || fail=1
 
 # This *should* change the group of f.
 # Though note that the diagnostic is misleading in that
-# it says the `group of `symlink'' has been changed.
+# it says the 'group of `symlink'' has been changed.
 chgrp $g1 symlink; test `stat --printf=%g f` = $g1 || fail=1
 chown --from=:$g1 :$g2 f; test `stat --printf=%g f` = $g2 || fail=1
 
index ab5db8d745401e10fa620fd28ad2025e45fbbd7e..cf1ddd8697ca98822d797fc2309a9b4e575ea8ca 100755 (executable)
@@ -52,7 +52,7 @@ set _ `ls -ln f`; g=$5; test "$g" = $g2 || fail=1
 
 # This *should* change the group of f.
 # Though note that the diagnostic you'd get with -c is misleading in that
-# it says the `group of `symlink'' has been changed.
+# it says the 'group of `symlink'' has been changed.
 chgrp --dereference $g1 symlink
 set _ `ls -ln f`; g=$5; test "$g" = $g1 || fail=1
 set _ `ls -ln symlink`; g=$5; test "$g" = $g2 || fail=1
index 200fa32210df753b6168b39934e8e15322b29dea..c6688c62329a19ae6dae4ae67a8302d1feb73ff3 100755 (executable)
@@ -37,9 +37,9 @@ prog=chgrp
 # NOTE: this code is the same for all tests/*/no-x tests.
 # Depending on whether fts is using native fdopendir, we see one
 # of the following diagnostics (note also the /y suffix in one case):
-#   prog: `d/no-x': Permission denied
-#   prog: cannot access `d/no-x/y': Permission denied
-#   prog: cannot read directory `d/no-x': Permission denied
+#   prog: 'd/no-x': Permission denied
+#   prog: cannot access 'd/no-x/y': Permission denied
+#   prog: cannot read directory 'd/no-x': Permission denied
 # Convert either of the latter two to the first one.
 sed "s/^$prog: cannot access /$prog: /" out > t && mv t out
 sed "s/^$prog: cannot read directory /$prog: /" out > t && mv t out
index b2723b68ac4f0e551f02a1a7f289658343bdaa83..a6474f562d2ffdeb3fe7c0487d8481f7271b4643 100755 (executable)
@@ -43,7 +43,7 @@ changed='
 3
 '
 for i in $changed; do
-  # Filter out symlinks (entries that end in `s'), since it's not
+  # Filter out symlinks (entries that end in 's'), since it's not
   # possible to change their group/owner information on some systems.
   case $i in *s) continue;; esac
   set _ `ls -dgn $i`; shift
@@ -59,7 +59,7 @@ not_changed='
 3/3F
 '
 for i in $not_changed; do
-  # Filter out symlinks (entries that end in `s'), since it's not
+  # Filter out symlinks (entries that end in 's'), since it's not
   # possible to change their group/owner information on some systems.
   case $i in *s) continue;; esac
   set _ `ls -dgn $i`; shift
index 3a68eeaa9fc287790183a2bcca2b4e8e482cf042..cc0d1426816b375675cba7b6370238a4900ba7c7 100755 (executable)
@@ -32,9 +32,9 @@ prog=chmod
 # NOTE: this code is the same for all tests/*/no-x tests.
 # Depending on whether fts is using native fdopendir, we see one
 # of the following diagnostics (note also the /y suffix in one case):
-#   prog: `d/no-x': Permission denied
-#   prog: cannot access `d/no-x/y': Permission denied
-#   prog: cannot read directory `d/no-x': Permission denied
+#   prog: 'd/no-x': Permission denied
+#   prog: cannot access 'd/no-x/y': Permission denied
+#   prog: cannot read directory 'd/no-x': Permission denied
 # Convert either of the latter two to the first one.
 sed "s/^$prog: cannot access /$prog: /" out > t && mv t out
 sed "s/^$prog: cannot read directory /$prog: /" out > t && mv t out
@@ -47,7 +47,7 @@ EOF
 compare exp out || fail=1
 
 cd a
-# This will fail with ``chmod: fts_read failed: Permission denied''
+# This will fail with '`chmod: fts_read failed: Permission denied''
 chmod a-x . b 2> /dev/null && fail=1
 # chmod must exit with status 1.
 # Due to a bug in coreutils-5.93's fts.c, chmod would provoke
index 3e6c02a61638ea775c125814dd10b371901045de..845116b26c8af81ed8d44b0a47a0eb3efb202d90 100755 (executable)
@@ -21,7 +21,7 @@ print_ver_ chmod
 
 
 # Before coreutils-5.92, this would mistakenly succeed,
-# and act like `chmod 0 .'.
+# and act like 'chmod 0 .'.
 chmod 0-followed-by-anything . 2> /dev/null && fail=1
 chmod 7-followed-by-anything . 2> /dev/null && fail=1
 chmod 8                      . 2> /dev/null && fail=1
index 2d1992c34d5e41cee0cbfdb1c51fee462eac4751..aeaf8ee760999f99f26ae7a6d6cf2301e5046c51 100755 (executable)
@@ -30,7 +30,7 @@ chown --dereference $user dangle 2> out1 && fail=1
 sed 's/: [^:]*$//' out1 > out
 
 cat <<\EOF > exp || fail=1
-chown: cannot dereference `dangle'
+chown: cannot dereference 'dangle'
 EOF
 
 compare exp out || fail=1
index 69d92d4aadfbce86fb186491ea328ad62cecde08..a9145b7ab039eabde3587553b1aee4c31218f1da 100755 (executable)
@@ -47,17 +47,17 @@ chown -RLh --preserve-root `id -u` d >> out 2>&1 && fail=1
 chgrp -RLh --preserve-root `id -g` d >> out 2>&1 && fail=1
 
 cat <<\EOF > exp || fail=1
-chown: it is dangerous to operate recursively on `/'
+chown: it is dangerous to operate recursively on '/'
 chown: use --no-preserve-root to override this failsafe
-chgrp: it is dangerous to operate recursively on `/'
+chgrp: it is dangerous to operate recursively on '/'
 chgrp: use --no-preserve-root to override this failsafe
-chmod: it is dangerous to operate recursively on `/'
+chmod: it is dangerous to operate recursively on '/'
 chmod: use --no-preserve-root to override this failsafe
 ==== test -RHh
 ==== test -RLh
-chown: it is dangerous to operate recursively on `d/slink-to-root' (same as `/')
+chown: it is dangerous to operate recursively on 'd/slink-to-root' (same as '/')
 chown: use --no-preserve-root to override this failsafe
-chgrp: it is dangerous to operate recursively on `d/slink-to-root' (same as `/')
+chgrp: it is dangerous to operate recursively on 'd/slink-to-root' (same as '/')
 chgrp: use --no-preserve-root to override this failsafe
 EOF
 
index fc8dbf3c4c40753f99c9bb71262c104b22c6879a..9fa7ec6e2ab7b8f722c3e3802e3470fe4d3fb45e 100755 (executable)
@@ -28,7 +28,7 @@ cp --b=simple a~ a > out 2>&1 && fail=1
 sed "s,cp:,XXX:," out > out2
 
 cat > exp <<\EOF
-XXX: backing up `a' would destroy source;  `a~' not copied
+XXX: backing up 'a' would destroy source;  'a~' not copied
 EOF
 
 compare exp out2 || fail=1
index be846564574334d2ef3194af4f90e60cfa79fb1e..11758170d0f99872aa7bceb53e4130507f8ba504 100755 (executable)
@@ -83,7 +83,7 @@ grep "Operation not supported" err && fail=1
 # to the file type.
 # Note: this test could also be run by a regular (non-root) user in an
 # NFS mounted directory.  When doing that, I get this diagnostic:
-# cp: failed to set the security context of `g' to `system_u:object_r:nfs_t': \
+# cp: failed to set the security context of 'g' to 'system_u:object_r:nfs_t': \
 #   Operation not supported
 cat <<\EOF > exp || framework_failure_
 cp: failed to set the security context of
index 290ee4092a63a0bcf2db6ca66f0666d057af7dd8..08a1485f996305dfd19896fca396119ca46b70ae 100755 (executable)
@@ -26,7 +26,7 @@ ln -s ../c b || framework_failure_
 
 
 # Before coreutils-5.94, the following would fail with this message:
-# cp: will not create hard link `d/b/c' to directory `d/a/c'
+# cp: will not create hard link 'd/b/c' to directory 'd/a/c'
 cp -RL a b d || fail=1
 test -d a/c || fail=1
 test -d b/c || fail=1
index 5a122294e7f921eb50b1b76e6e86a15e1aea042e..66cc74bf15a5b3194568b10656ffdcd9ebd98a73 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ cp
 umask 022
 
 # Be careful to close $actual before removing the containing directory.
-# Use `1>&2' rather than `1<&-' since the latter appears not to work
+# Use '1>&2' rather than '1<&-' since the latter appears not to work
 # with /bin/sh from powerpc-ibm-aix4.2.0.0.
 
 actual=actual
index d9b373ff2a336ebd262a4503a16821ae401eeb5c..76ede2e3e0c7bd47d0873df97bbfe2124435f1c2 100755 (executable)
@@ -89,7 +89,7 @@ rm -f err noxattr/a
 cp -a --preserve=xattr xattr/a noxattr/ 2>err && fail=1
 if grep '^#define USE_XATTR 1' $CONFIG_HEADER > /dev/null; then
 cat <<\EOF > exp
-cp: setting attributes for `noxattr/a': Operation not supported
+cp: setting attributes for 'noxattr/a': Operation not supported
 EOF
 else
 cat <<\EOF > exp
index c7c89942ff112b10a8dd437ac4b2090b4aba1bee..2b6133cd064a44e2a9e3e27dd8ae9ae438b4718c 100755 (executable)
@@ -29,7 +29,7 @@ chmod u=rx,go=,-st D || framework_failure_
 # This is expected to exit non-zero, because it can't read D/a.
 cp -pR D DD > /dev/null 2>&1 && fail=1
 
-# Permissions on DD must be `dr-x------'
+# Permissions on DD must be 'dr-x------'
 
 mode=`ls -ld DD|cut -b-10`
 test "$mode" = dr-x------ || fail=1
@@ -38,7 +38,7 @@ chmod 0 D
 ln -s D/D symlink
 touch F
 cat > exp <<\EOF
-cp: accessing `symlink': Permission denied
+cp: accessing 'symlink': Permission denied
 EOF
 
 cp F symlink 2> out && fail=1
index 878831d2e22374e8923f1cfacaad51eb786e05e8..951d8e0620cef771a81cccf336e63c9eccc13c70 100755 (executable)
@@ -48,7 +48,7 @@ fallocate -l 600MiB space.test ||
 
 # Disable this test on old BTRFS (e.g. Fedora 14)
 # which reports ordinary extents for unwritten ones.
-filefrag space.test || skip_ 'the `filefrag` utility is missing'
+filefrag space.test || skip_ 'the 'filefrag` utility is missing'
 filefrag -v space.test | grep -F 'unwritten' > /dev/null ||
   skip_ 'this file system does not report empty extents as "unwritten"'
 
index 33bb818d26fb6a59e984d24ced5d093be4a1ba24..3addfe1b2a84a068f54cf5ea18c18c5752e6bc4b 100755 (executable)
@@ -34,7 +34,7 @@ timeout 10 truncate -s1T f || framework_failure_
 
 # Disable this test on old BTRFS (e.g. Fedora 14)
 # which reports (unwritten) extents for holes.
-filefrag f || skip_ 'the `filefrag` utility is missing'
+filefrag f || skip_ 'the 'filefrag` utility is missing'
 filefrag f | grep -F ': 0 extents found' > /dev/null ||
   skip_ 'this file system reports extents for holes'
 
index 792e659f8f20c4346ae6e01c7b7670ace65f6c85..67cec7f95097d1a5ae5201a5c4e944da52b8d2e2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# 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
 #'
index 5b84f3ca81cc4df23ae8c100872eb9946d62d8f4..243cf3721e09ad3db8753f046bf6b20b51fcc367 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# ensure that `cp -d' preserves hard-links between command line arguments
+# ensure that 'cp -d' preserves hard-links between command line arguments
 # ensure that --preserve=links works with -RH and -RL
 
 # Copyright (C) 2001-2002, 2004, 2006-2012 Free Software Foundation, Inc.
index 100bf3c17d933c488ad45cf2a56b3655f9e8fc46..677c284cf991c9658fe013b466fd0b3d30596ebe 100755 (executable)
@@ -29,7 +29,7 @@ cd ..
 
 
 # It should fail with a message something like this:
-#   ./cp: `a/foo' and `b/foo' are the same file
+#   ./cp: 'a/foo' and 'b/foo' are the same file
 cp -d a/foo b 2>/dev/null
 
 # Fail this test if the exit status is not 1
index df2c70fc1f449de126d61c65f3c5ed5cbea2d416..33fc43187bbd5a5eaff02d5d36407dad2af1487c 100755 (executable)
@@ -29,7 +29,7 @@ cd ..
 
 
 # It should fail with a message something like this:
-#   cp: `a' and `b/foo' are the same file
+#   cp: 'a' and 'b/foo' are the same file
 cp -d a b 2>/dev/null
 
 # Fail this test if the exit status is not 1
index 052be6dd1e0293092c0a6aa173e31d7bb34e2c48..6ea56349d17b8148c151dceb2426e10750ddc1af 100755 (executable)
@@ -26,7 +26,7 @@ ln -s a b
 
 
 # It should fail with a message something like this:
-#   cp: `a' and `b' are the same file
+#   cp: 'a' and 'b' are the same file
 cp -d a b 2>/dev/null
 
 # Fail this test if the exit status is not 1
index 2dd3ae5719761eb318a3c24be7c8999a593ae5af..7a03400b0f20a91280cba6abb35ef65e3bb7cc91 100755 (executable)
@@ -24,7 +24,7 @@ very_expensive_
 umask 037
 
 
-# Now, try it with `mv', with combinations of --force, no-f and
+# Now, try it with 'mv', with combinations of --force, no-f and
 # existing-destination and not.
 for u in 31 37 2; do
   echo umask: $u
index 13c58f64ff97218de7d31ba3a5cae5bda44486d0..36bf3a5c3c1967e6e0c257d42462fdda1db38c7e 100755 (executable)
@@ -18,7 +18,7 @@
 
 # Restored old behavior (whereby cp -r preserves symlinks) in 4.1.6,
 # though now such usage evokes a warning:
-# cp: `slink': WARNING: using -r to copy symbolic links is not portable
+# cp: 'slink': WARNING: using -r to copy symbolic links is not portable
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
index dad7068ffce65431ce2222d149549070a61431db..440f342e3656e2d25d03874a5241e1ac8213210d 100755 (executable)
@@ -20,7 +20,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-# Unset CDPATH.  Otherwise, output from the `cd dir' command
+# Unset CDPATH.  Otherwise, output from the 'cd dir' command
 # can make this test fail.
 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
@@ -128,16 +128,16 @@ for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' 'foo hardlink'; do
 done
 
 cat <<\EOF | sed "$remove_these_sed" > expected
-1 [cp: `foo' and `symlink' are the same file] (foo symlink -> foo)
-1 -d [cp: `foo' and `symlink' are the same file] (foo symlink -> foo)
-1 -f [cp: `foo' and `symlink' are the same file] (foo symlink -> foo)
-1 -df [cp: `foo' and `symlink' are the same file] (foo symlink -> foo)
+1 [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
+1 -d [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
+1 -f [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
+1 -df [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
 0 --rem (foo symlink)
 0 -b (foo symlink symlink.~1~ -> foo)
 0 -bd (foo symlink symlink.~1~ -> foo)
 0 -bf (foo symlink symlink.~1~ -> foo)
 0 -bdf (foo symlink symlink.~1~ -> foo)
-1 -l [cp: cannot create hard link `symlink' to `foo'] (foo symlink -> foo)
+1 -l [cp: cannot create hard link 'symlink' to 'foo'] (foo symlink -> foo)
 0 -dl (foo symlink -> foo)
 0 -fl (foo symlink)
 0 -dfl (foo symlink)
@@ -146,14 +146,14 @@ cat <<\EOF | sed "$remove_these_sed" > expected
 0 -bfl (foo symlink symlink.~1~ -> foo)
 0 -bdfl (foo symlink symlink.~1~ -> foo)
 
-1 [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-1 -d [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-1 -f [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-1 -df [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-1 --rem [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-1 -b [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
+1 [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+1 -d [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+1 -f [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+1 -df [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+1 --rem [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+1 -b [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
 0 -bd (foo -> foo foo.~1~ symlink -> foo) symlink-loop symlink-loop
-1 -bf [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
+1 -bf [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
 0 -bdf (foo -> foo foo.~1~ symlink -> foo) symlink-loop symlink-loop
 0 -l (foo symlink -> foo)
 0 -dl (foo symlink -> foo)
@@ -161,13 +161,13 @@ cat <<\EOF | sed "$remove_these_sed" > expected
 0 -bl (foo symlink -> foo)
 0 -bfl (foo symlink -> foo)
 
-1 [cp: `foo' and `foo' are the same file] (foo)
-1 -d [cp: `foo' and `foo' are the same file] (foo)
-1 -f [cp: `foo' and `foo' are the same file] (foo)
-1 -df [cp: `foo' and `foo' are the same file] (foo)
-1 --rem [cp: `foo' and `foo' are the same file] (foo)
-1 -b [cp: `foo' and `foo' are the same file] (foo)
-1 -bd [cp: `foo' and `foo' are the same file] (foo)
+1 [cp: 'foo' and 'foo' are the same file] (foo)
+1 -d [cp: 'foo' and 'foo' are the same file] (foo)
+1 -f [cp: 'foo' and 'foo' are the same file] (foo)
+1 -df [cp: 'foo' and 'foo' are the same file] (foo)
+1 --rem [cp: 'foo' and 'foo' are the same file] (foo)
+1 -b [cp: 'foo' and 'foo' are the same file] (foo)
+1 -bd [cp: 'foo' and 'foo' are the same file] (foo)
 0 -bf (foo foo.~1~)
 0 -bdf (foo foo.~1~)
 0 -l (foo)
@@ -179,24 +179,24 @@ cat <<\EOF | sed "$remove_these_sed" > expected
 0 -bfl (foo foo.~1~)
 0 -bdfl (foo foo.~1~)
 
-1 [cp: `sl1' and `sl2' are the same file] (foo sl1 -> foo sl2 -> foo)
+1 [cp: 'sl1' and 'sl2' are the same file] (foo sl1 -> foo sl2 -> foo)
 0 -d (foo sl1 -> foo sl2 -> foo)
-1 -f [cp: `sl1' and `sl2' are the same file] (foo sl1 -> foo sl2 -> foo)
+1 -f [cp: 'sl1' and 'sl2' are the same file] (foo sl1 -> foo sl2 -> foo)
 0 -df (foo sl1 -> foo sl2 -> foo)
 0 --rem (foo sl1 -> foo sl2)
 0 -b (foo sl1 -> foo sl2 sl2.~1~ -> foo)
 0 -bd (foo sl1 -> foo sl2 -> foo sl2.~1~ -> foo)
 0 -bf (foo sl1 -> foo sl2 sl2.~1~ -> foo)
 0 -bdf (foo sl1 -> foo sl2 -> foo sl2.~1~ -> foo)
-1 -l [cp: cannot create hard link `sl2' to `sl1'] (foo sl1 -> foo sl2 -> foo)
+1 -l [cp: cannot create hard link 'sl2' to 'sl1'] (foo sl1 -> foo sl2 -> foo)
 0 -fl (foo sl1 -> foo sl2 -> foo)
 0 -bl (foo sl1 -> foo sl2 -> foo sl2.~1~ -> foo)
 0 -bfl (foo sl1 -> foo sl2 -> foo sl2.~1~ -> foo)
 
-1 [cp: `foo' and `hardlink' are the same file] (foo hardlink)
-1 -d [cp: `foo' and `hardlink' are the same file] (foo hardlink)
-1 -f [cp: `foo' and `hardlink' are the same file] (foo hardlink)
-1 -df [cp: `foo' and `hardlink' are the same file] (foo hardlink)
+1 [cp: 'foo' and 'hardlink' are the same file] (foo hardlink)
+1 -d [cp: 'foo' and 'hardlink' are the same file] (foo hardlink)
+1 -f [cp: 'foo' and 'hardlink' are the same file] (foo hardlink)
+1 -df [cp: 'foo' and 'hardlink' are the same file] (foo hardlink)
 0 --rem (foo hardlink)
 0 -b (foo hardlink hardlink.~1~)
 0 -bd (foo hardlink hardlink.~1~)
index 10207db74d0350ff1d9349356017ea3d57489617..8542db1bdeead54d7a2ce26d0b5212cccc8a29d8 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# `test cp --update A B' where A and B are both symlinks that point
+# 'test cp --update A B' where A and B are both symlinks that point
 # to the same file
 
 # Copyright (C) 2000, 2002, 2004, 2006-2012 Free Software Foundation, Inc.
index c3de4261273baaafc30f82e1c71615f57c2fd50a..362401156dfea8c1edb2917156b378623457acf3 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# make sure `cp -p' preserves special bits
+# make sure 'cp -p' preserves special bits
 # This works only when run as root.
 
 # Copyright (C) 2000-2002, 2004, 2006-2012 Free Software Foundation, Inc.
index d908095747ff187cb7968927c5a226cc12ae51c4..eeaf97cdf9be085e4285d3d93e0f20da7d4139af 100755 (executable)
@@ -26,7 +26,7 @@ ln -s dir symlink || framework_failure_
 cp -dR symlink/ s || fail=1
 set `ls -l s`
 
-# Prior to fileutils-4.0q, the following would have output ...`s -> dir'
+# Prior to fileutils-4.0q, the following would have output ...'s -> dir'
 # because the trailing slash was removed unconditionally (now you have to
 # use the new --strip-trailing-slash option) causing cp to reproduce the
 # symlink.  Now, the trailing slash is interpreted by the stat library
index beeae8cb067c3709c1a371cc6cd3cd55632ad5df..f388969a4d07e8bd65640dc4b5aa6b3a85f6f4f9 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Ensure dd treats `--' properly.
+# Ensure dd treats '--' properly.
 # Also test some flag values.
 
 # Copyright (C) 1999, 2004-2012 Free Software Foundation, Inc.
index 88cf8674247877f880b8856eb0d821a8bff20bb9..a901ddbe951720be4da4216397fbb01400211f7f 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ du
 
-# Creating a 2GB file counts as `very expensive'.
+# Creating a 2GB file counts as 'very expensive'.
 very_expensive_
 
 
 # Get number of free kilobytes on current partition, so we can
 # skip this test if there is insufficient free space.
 
-# This technique relies on the fact that the `Available' kilobyte
-# count is the number just before the one with a trailing `%'.
+# This technique relies on the fact that the 'Available' kilobyte
+# count is the number just before the one with a trailing '%'.
 free_kb=`df -kP .|tail -1|sed 's/ [0-9][0-9]*%.*//;s/ *$//;s/.* //'`
 case "$free_kb" in
   [0-9]*) ;;
index 3926a36ee674ab90c9df5c37da9e2961f213e3ea..e8803783c72d0cb65987ea23fc3247007ee3bfdc 100755 (executable)
@@ -29,7 +29,7 @@ fi
 
 # FIXME: this should be a test of dd.
 # On some systems (at least linux-2.4.18 + NFS to disks on a Solaris system)
-# the `dd' command above mistakenly creates a file of length `0', yet
+# the 'dd' command above mistakenly creates a file of length '0', yet
 # doesn't fail.  The root of that failure is that the ftruncate call
 # returns zero but doesn't do its job.  Detect this failure.
 set x `ls -gG big`
@@ -41,7 +41,7 @@ Consider rerunning this test on a different file system."
 fi
 
 
-# This would print `0  big' with coreutils-4.5.8.
+# This would print '0  big' with coreutils-4.5.8.
 du -ab big > out || fail=1
 
 cat <<\EOF > exp
index 3de6aa4a916fec523468add7c5123f42c66974de..cfd84563b4f6da79e22404ac517ee02503285650 100755 (executable)
@@ -30,7 +30,7 @@ ln -s nowhere dangle || framework_failure_
 
 
 # This used to fail with the following diagnostic:
-# du: `b': No such file or directory
+# du: 'b': No such file or directory
 du -sD slink b > /dev/null 2>&1 || fail=1
 
 # This used to fail to report the dangling symlink.
index fb25c3f0fd55756e18bc9f96e1328679bea967e9..c62c2a8052b0e653a895d8ed8aa3171773e4ad9c 100755 (executable)
@@ -43,7 +43,7 @@ my @Tests =
    # input file name of '-'
    ['minus-in-stdin', '--files0-from=-', '<', {IN=>{f=>'-'}}, {EXIT=>1},
     {ERR => "$prog: when reading file names from stdin, no file name of"
-     . " `-' allowed\n"}],
+     . " '-' allowed\n"}],
 
    # empty input, regular file
    ['empty', '--files0-from=@AUX@', {AUX=>''}],
index 61e01d8a27823ffb499a5a96d110c912e3c670a8..c9c709759651ad94b4ca2782f2fd030a3813ce54 100755 (executable)
@@ -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
index c661bc1c308d5700540d62e5b08517addb4efafc..10864e00ef667afe83d920be6a1685b50b1f1711 100755 (executable)
 
 # Show that fts (hence du, chmod, chgrp, chown) fails when all of the
 # following are true:
-#   - `.' is not readable
+#   - '.' is not readable
 #   - operating on a hierarchy containing a relative name longer than PATH_MAX
 #   - run on a system where gnulib's openat emulation must resort to using
-#       save_cwd and restore_cwd (which fail if `.' is not readable).
+#       save_cwd and restore_cwd (which fail if '.' is not readable).
 # Thus, the following du invocation should succeed on newer Linux and
 # Solaris systems, yet it must fail on systems lacking both openat and
 # /proc support.  However, before coreutils-6.0 this test would fail even
index b5b11f256383a887a548b990a04e697e55f3b56d..78926d38fadd1c0b2764179b51b84ec44c6ec8b1 100755 (executable)
@@ -47,9 +47,9 @@ echo foo > $i
 # If a system can handle this many symlinks in a file name,
 # just skip this test.
 
-# The following also serves to record in `err' the string
+# The following also serves to record in 'err' the string
 # corresponding to strerror (ELOOP).  This is necessary because while
-# Linux/libc gives `Too many levels of symbolic links', Solaris
+# Linux/libc gives 'Too many levels of symbolic links', Solaris
 # renders it as `Number of symbolic links encountered during path
 # name traversal exceeds MAXSYMLINKS'.
 
@@ -61,7 +61,7 @@ too_many=`sed 's/.*: //' err`
 
 # With coreutils-5.93 there was no failure.
 # With coreutils-5.94 we get the desired diagnostic:
-# du: cannot access `1/s/s/s/.../s': Too many levels of symbolic links
+# du: cannot access '1/s/s/s/.../s': Too many levels of symbolic links
 du -L 1 > /dev/null 2> out1 && fail=1
 sed "s, .1/s/s/s/[/s]*',," out1 > out || fail=1
 
index 9ba70770dc07fa9d8c170d03ac3cacae12bba33a..53084e1ca4a47eab0699f6b66d101e5916b66017 100755 (executable)
@@ -32,9 +32,9 @@ prog=du
 # NOTE: this code is the same for all tests/*/no-x tests.
 # Depending on whether fts is using native fdopendir, we see one
 # of the following diagnostics (note also the /y suffix in one case):
-#   prog: `d/no-x': Permission denied
-#   prog: cannot access `d/no-x/y': Permission denied
-#   prog: cannot read directory `d/no-x': Permission denied
+#   prog: 'd/no-x': Permission denied
+#   prog: cannot access 'd/no-x/y': Permission denied
+#   prog: cannot read directory 'd/no-x': Permission denied
 # Convert either of the latter two to the first one.
 sed "s/^$prog: cannot access /$prog: /" out > t && mv t out
 sed "s/^$prog: cannot read directory /$prog: /" out > t && mv t out
index 03d87e8589f5f2239324481850b6f56aa5ca82c1..eb9dc98efb1ccb4707eb9a9d56b8e42a8835af0e 100755 (executable)
@@ -24,7 +24,7 @@ mkdir a b || framework_failure_
 
 
 # With du from coreutils-4.5.5 and 4.5.6, this would fail with
-# du: `b': No such file or directory
+# du: 'b': No such file or directory
 
 du a b > out || fail=1
 
index 0dfc1096f68baae399cf942c6f5c540486a26523..24fc200791c61d03b0869332004bf0f8d6db57b0 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# `du /' would omit the `/' on the last line.
+# 'du /' would omit the '/' on the last line.
 
 # Copyright (C) 2003-2004, 2006-2012 Free Software Foundation, Inc.
 
index 99677f96c4506ee2b3eab49019cdfdfdfa38b039..1f84291715a770ab64fdc5d2afa814d56ce874aa 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ du
 
-# Determine if `.' is on a local (would non-NFS be sufficient?) file system.
+# Determine if '.' is on a local (would non-NFS be sufficient?) file system.
 # At least on OSF/1 4.0d, when using an nfsv3 file system,
 # each created symlink can end up having a size of 0.
 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'.
+  # each created symlink (name lengths up to 255) would have a size of '0'.
   skip_ "'.' is on an XFS file system"
 fi
 
index 88d01339df66556ec71e8475bd4f67a8dde9de4e..0d88c98edae5cf339f3080c8f25d1fd8bbffc135 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Make sure `du d/1 d/2' works.
+# Make sure 'du d/1 d/2' works.
 # That command failed with du from fileutils-4.0q.
 
 # Copyright (C) 2000, 2004-2012 Free Software Foundation, Inc.
index 858004c65db4e99d57463469d599f2c690713323..6ca8dc6514ba28da749358336173da9d61b71941 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# On GNU, `id' must fail for processes with zero UIDs.
+# On GNU, 'id' must fail for processes with zero UIDs.
 
 # Copyright (C) 2011-2012 Free Software Foundation, Inc.
 
@@ -23,7 +23,7 @@ require_gnu_
 
 sush - true || skip_ "the 'sush' command does not work"
 
-# Run `id' with zero UIDs.  It should exit with a non-zero status.
+# Run 'id' with zero UIDs.  It should exit with a non-zero status.
 sush - id > out && fail=1
 
 Exit $fail
index 437969840b3e6d0b0aefdac4ec1a5d4a124ffb80..fda82bc028044b287c4acecf8abb335aec6a7f93 100644 (file)
@@ -153,7 +153,7 @@ require_setfacl_()
     || skip_ "setfacl does not work on the current file system"
 }
 
-# Require a controlling input `terminal'.
+# Require a controlling input 'terminal'.
 require_controlling_input_terminal_()
 {
   tty -s || have_input_tty=no
@@ -231,7 +231,7 @@ rwx_to_mode_()
   # s  xs
   # T  t
   # t  xt
-  # The `T' and `t' ones are only valid for `other'.
+  # The 'T' and 't' ones are only valid for 'other'.
   s='s/S/@/;s/s/x@/;s/@/s/'
   t='s/T/@/;s/t/x@/;s/@/t/'
 
@@ -310,7 +310,7 @@ require_root_()
 
 skip_if_root_() { uid_is_privileged_ && skip_ "must be run as non-root"; }
 
-# Set `groups' to a space-separated list of at least two groups
+# Set 'groups' to a space-separated list of at least two groups
 # of which the user is a member.
 require_membership_in_two_groups_()
 {
@@ -321,7 +321,7 @@ require_membership_in_two_groups_()
     *' '*) ;;
     *) skip_ 'requires membership in two groups
 this test requires that you be a member of more than one group,
-but running `id -G'\'' either failed or found just one.  If you really
+but running 'id -G'\'' either failed or found just one.  If you really
 are a member of at least two groups, then rerun this test with
 COREUTILS_GROUPS set in your environment to the space-separated list
 of group names or numbers.  E.g.,
@@ -398,7 +398,7 @@ mkfifo_or_skip_()
     # Make an exception of this case -- usually we interpret framework-creation
     # failure as a test failure.  However, in this case, when running on a SunOS
     # system using a disk NFS mounted from OpenBSD, the above fails like this:
-    # mkfifo: cannot make fifo `fifo-10558': Not owner
+    # mkfifo: cannot make fifo 'fifo-10558': Not owner
     skip_ 'unable to create a fifo'
   fi
 }
index dca2151313d951324aa6d4a1133dedcdd9d3e9e0..6266a259ff4d89c752e37d44d916cb5c985cd357 100644 (file)
@@ -61,7 +61,7 @@ ME_=`expr "./$0" : '.*/\(.*\)$'`
 
 # We use a trap below for cleanup.  This requires us to go through
 # hoops to get the right exit status transported through the handler.
-# So use `Exit STATUS' instead of `exit STATUS' inside of the tests.
+# So use 'Exit STATUS' instead of 'exit STATUS' inside of the tests.
 # Turn off errexit here so that we don't trip the bug with OSF1/Tru64
 # sh inside this function.
 Exit () { set +e; (exit $1); exit $1; }
@@ -172,7 +172,7 @@ else
     if test "$re_shell_" = __current__; then
       # 'eval'ing this code makes Solaris 10's /bin/sh exit with
       # $? set to 2.  It does not evaluate any of the code after the
-      # "unexpected" first `('.  Thus, we must run it in a subshell.
+      # "unexpected" first '('.  Thus, we must run it in a subshell.
       ( eval "$gl_shell_test_script_" ) > /dev/null 2>&1
     else
       "$re_shell_" -c "$gl_shell_test_script_" 2>/dev/null
index 856590806127d922e6aac5f312ba912ea7185505..9f954eee43fd7825811b5e04d7dfef2fe1654f67 100755 (executable)
@@ -83,7 +83,7 @@ chmod 755 sub
 # Ensure that the first argument-dir has been created.
 test -d xx/yy || fail=1
 
-# Make sure that the `rel' directory was not created...
+# Make sure that the 'rel' directory was not created...
 test -d sub/rel && fail=1
 # and make sure it was not created in the wrong place.
 test -d xx/rel && fail=1
@@ -105,11 +105,11 @@ fi
 touch file || fail=1
 ginstall -Dv file sub3/a/b/c/file >out 2>&1 || fail=1
 compare - out <<\EOF || fail=1
-ginstall: creating directory `sub3'
-ginstall: creating directory `sub3/a'
-ginstall: creating directory `sub3/a/b'
-ginstall: creating directory `sub3/a/b/c'
-`file' -> `sub3/a/b/c/file'
+ginstall: creating directory 'sub3'
+ginstall: creating directory 'sub3/a'
+ginstall: creating directory 'sub3/a/b'
+ginstall: creating directory 'sub3/a/b/c'
+'file' -> 'sub3/a/b/c/file'
 EOF
 
 Exit $fail
index 715fe29837a4ee7620652b6d0c51ff2c8823a56a..d349f601cfa016724a4171228a0258749d6ef3f5 100755 (executable)
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# Note that the tests below use `ginstall', not install, because
+# Note that the tests below use 'ginstall', not install, because
 # that's the name of the binary in ../../src.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
index 446e39ad4fb0a15832a343d5b5506cd73d8d8043..79cea5f7cb6ec852ad9ece2aa019e7b2955daa42 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Ensure that `install -s' doesn't infloop when its parent
+# Ensure that 'install -s' doesn't infloop when its parent
 # process traps CHLD signal.
 
 # Copyright (C) 2004-2012 Free Software Foundation, Inc.
@@ -26,7 +26,7 @@ print_ver_ ginstall
   # ash doesn't support "trap '' CHLD"; it knows only signal numbers.
   sig=`"$abs_top_builddir/src/kill" -l CHLD 2>/dev/null` && trap '' $sig
 
-  # Before 2004-04-21, install would infloop, in the `while (wait...' loop:
+  # Before 2004-04-21, install would infloop, in the 'while (wait...' loop:
   exec ginstall -s "$abs_top_builddir/src/ginstall$EXEEXT" .
 )
 
index 65bf1f15a6cdcad74a8c8a4f4a6df77282abbb0d..bc38bbe5d32474df4dfdb50e96fa78a1d6717c67 100755 (executable)
@@ -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
index 5a3f1762ca2a313eee16f8a62c1a37002a598e6b..3ea4570b16ab2e2608be0df6e0d0518a5df6a093 100755 (executable)
@@ -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
index 72c46f203dc35de4d297596fbd5b6d692ac02b86..87dfbf0cdccd067360e3070038d64801cc75a3d9 100755 (executable)
@@ -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
index 8bfe04c07d1dbe4028bb95a662bb595e2415b54c..7b5042c7c869fdea92d4ecb137b4f40c50eac7df 100755 (executable)
@@ -26,7 +26,7 @@ ln -s link link || framework_failure_
 ln -s ../../dir1 sub/link-to-dir || framework_failure_
 
 # Make sure the symlink was created.
-# `ln -s link link' succeeds, but creates no file on
+# 'ln -s link link' succeeds, but creates no file on
 # systems running some DJGPP-2.03 libc.
 ls -F link > /dev/null || framework_failure_
 
index 8234a15de6a7e7d6f1547303789817a8cb2a04a8..26774072f3042941f3c1543e281a8f4f8f3d216a 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# make sure ls and `ls -R' do the right thing when invoked with no arguments.
+# make sure ls and 'ls -R' do the right thing when invoked with no arguments.
 
 # Copyright (C) 2001, 2003-2004, 2006-2012 Free Software Foundation, Inc.
 
index 71cee568d790362e4afef7bc4c9048fac2937e37..5adfdadcdda292edcab492884fdd47f97058d8eb 100755 (executable)
@@ -24,7 +24,7 @@ ln -s dir symlink || framework_failure_
 
 set `ls -l symlink/`
 
-# Prior to fileutils-4.0k, the following would have output `... symlink -> dir'.
+# Prior to fileutils-4.0k, the following would have output '... symlink -> dir'.
 test "$*" = 'total 0' && : || fail=1
 
 Exit $fail
index ba8c1c88a0033d9a178dc2040b27d9f3e8f6c462..ae41c93615a5305c4dde114545889bd451985907 100755 (executable)
@@ -23,13 +23,13 @@ ls -l --time-style=XX > out 2> err
 test $? = 2 || fail=1
 
 cat <<\EOF > exp || fail=1
-ls: invalid argument `XX' for `time style'
+ls: invalid argument 'XX' for 'time style'
 Valid arguments are:
   - [posix-]full-iso
   - [posix-]long-iso
   - [posix-]iso
   - [posix-]locale
-  - +FORMAT (e.g., +%H:%M) for a `date'-style format
+  - +FORMAT (e.g., +%H:%M) for a 'date'-style format
 Try 'ls --help' for more information.
 EOF
 
index 6bd5e4019a3d13f824b0fbe8737ed03a4dbb6a56..349aac8f5eac6d3704f6b84aaf74c9e1abb67fbc 100755 (executable)
@@ -59,7 +59,7 @@ my @Tests =
      ['10', qw(fs/ s/),    {OUT => 'fs'}],
    );
 
-# Append a newline to end of each expected `OUT' string.
+# Append a newline to end of each expected 'OUT' string.
 my $t;
 foreach $t (@Tests)
   {
index ef4087f09067d522cf8c8166f3efe985528a862f..caa48314334685146188438160dc5570b2968f7c 100755 (executable)
@@ -71,7 +71,7 @@ EOF
 compare exp out || fail=1
 
 chcon --verbose -u$u1 f > out || fail=1
-echo 'changing security context of `f'\' > exp
+echo 'changing security context of 'f'\' > exp
 compare exp out || fail=1
 
 Exit $fail
index ef0da141e23561778a5711eeaf9be18c7eb7c8d8..aea2e918f2a4649b0faa905d37dab1480f30f217 100755 (executable)
@@ -48,7 +48,7 @@ EOF
 compare exp out || fail=1
 rm -f in out exp
 
-# `echo |csplit - 1 1' used to abort.
+# 'echo |csplit - 1 1' used to abort.
 echo > in
 csplit in 1 1 > out 2> err || fail=1
 cat <<EOF > exp
@@ -58,12 +58,12 @@ cat <<EOF > exp
 EOF
 compare exp out || fail=1
 cat <<\EOF > experr
-csplit: warning: line number `1' is the same as preceding line number
+csplit: warning: line number '1' is the same as preceding line number
 EOF
 compare experr err || fail=1
 rm -f in out exp err experr
 
-# `echo | csplit -b '%0#6.3x' - 1' incorrectly warned about the format
+# 'echo | csplit -b '%0#6.3x' - 1' incorrectly warned about the format
 # up through coreutils 8.6.
 echo > in
 csplit -b '%0#6.3x' in 1 > out 2> err || fail=1
@@ -78,16 +78,16 @@ compare 'xx   000' experr || fail=1
 compare 'xx 0x001' in || fail=1
 rm -f in out exp err experr xx*
 
-# make sure `csplit FILE 0' fails.
+# make sure 'csplit FILE 0' fails.
 echo > in
 csplit in 0 > out 2> err && fail=1
 csplit in 2 1 > out 2>> err && fail=1
 csplit in 3 3 > out 2>> err && fail=1
 cat <<\EOF > experr
 csplit: 0: line number must be greater than zero
-csplit: line number `1' is smaller than preceding line number, 2
-csplit: warning: line number `3' is the same as preceding line number
-csplit: `3': line number out of range
+csplit: line number '1' is smaller than preceding line number, 2
+csplit: warning: line number '3' is the same as preceding line number
+csplit: '3': line number out of range
 EOF
 compare experr err || fail=1
 
index 8c3676ef07ef79a744b3355e04dd81d831033154..0ce051ab0aa7a3e548fb1bc2c8c75a7c807b9b54 100755 (executable)
@@ -123,13 +123,13 @@ my @Tests =
   # A totally overlapped field shouldn't change anything:
   ['out-delim2', '-c1-3,2,5-', '--output-d=:', {IN=>"abcdefg\n"},
    {OUT=>"abc:efg\n"}],
-  # Partial overlap: index `2' is not at the start of a range.
+  # Partial overlap: index '2' is not at the start of a range.
   ['out-delim3', '-c1-3,2-4,6', '--output-d=:', {IN=>"abcdefg\n"},
    {OUT=>"abcd:f\n"}],
   ['out-delim3a', '-c1-3,2-4,6-', '--output-d=:', {IN=>"abcdefg\n"},
    {OUT=>"abcd:fg\n"}],
   # Ensure that the following two commands produce the same output.
-  # Before an off-by-1 fix, the output from the former would not contain a `:'.
+  # Before an off-by-1 fix, the output from the former would not contain a ':'.
   ['out-delim4', '-c4-,2-3', '--output-d=:',
    {IN=>"abcdefg\n"}, {OUT=>"bc:defg\n"}],
   ['out-delim5', '-c2-3,4-', '--output-d=:',
index 61137125e992a54e8b78c6fab228e1bf05d96085..8a23ca9c6db96121c77aead5f30774ee2b3f04e4 100755 (executable)
@@ -227,9 +227,9 @@ my @Tests =
 
      ['tz-5', '+%:z', {OUT=>"-00:01"}, {ENV=>'TZ=XXX0:01'}],
 
-     # Accept %:z with a field width before the `:'.
+     # Accept %:z with a field width before the ':'.
      ['tz-5w','+%8:z', {OUT=>"-0000:01"}, {ENV=>'TZ=XXX0:01'}],
-     # Don't recognize %:z with a field width between the `:' and the `z'.
+     # Don't recognize %:z with a field width between the ':' and the 'z'.
      ['tz-5wf', '+%:8z', {OUT=>"%:8z"}, {ENV=>'TZ=XXX0:01'}],
 
      ['ns-relative',
@@ -242,7 +242,7 @@ my @Tests =
 
      # Since coreutils/lib/getdate.y revision 1.96 (post-coreutils-5.3.0),
      # a command like the following would mistakenly exit nonzero with an
-     # `invalid date ...' diagnostic, but when run in a time zone for
+     # 'invalid date ...' diagnostic, but when run in a time zone for
      # which daylight savings time is in effect for the starting date.
      # Unfortunately (for ease of testing), if you set TZ at all, this
      # failure is not triggered, hence the removal of TZ from the environment.
@@ -266,7 +266,7 @@ my @Tests =
       # you get on a system with 32-bit time_t is not the same as
       # the one you get for a system where it's 64 bits wide:
       # - date: time 72057594037927935 is out of range
-      # + date: invalid date `@72057594037927935'
+      # + date: invalid date '@72057594037927935'
       {ERR_SUBST => 's/.*//'},
       {ERR => "\n"},
       {EXIT => 1},
index 04d8bc4fbdaa0eebf4455d7757e946f28e071697..b36b6759ff9b3e51c342cda737505f9e825d7a0e 100755 (executable)
@@ -25,11 +25,11 @@ print_ver_ date
 
 # It would be easier simply to sleep for two seconds between two runs
 # of `date --date="21:04 +0100" +%S` and ensure that both outputs
-# are `00', but I prefer not to sleep unconditionally.  `make check'
+# are '00', but I prefer not to sleep unconditionally.  'make check'
 # takes long enough as it is.
 
 n=0
-# See if the current number of seconds is `00' or just before.
+# See if the current number of seconds is '00' or just before.
 s=`date +%S`
 case "$s" in
   58) n=3;;
index 5934b25c7cd5bdd4e11a49c3049d9be2edb312b7..67a374ede86346b59db6bbd8e27438b70ac34c6f 100755 (executable)
@@ -53,7 +53,7 @@ my @Tests =
      ['m', qw(''),         {OUT => '.'}],
     );
 
-# Append a newline to end of each expected `OUT' string.
+# Append a newline to end of each expected 'OUT' string.
 my $t;
 foreach $t (@Tests)
   {
index be757e2c69b9de1bb76d067102d7c73a5a7b1255..556822848a2e1317857c0d6cdbd7d83ffaf0d481 100755 (executable)
@@ -54,7 +54,7 @@ my @Tests =
      ['paren4', '9 / \( \( 100 % 6 \) - 8 \)', {OUT => '-2'}],
      ['paren5', '9 + \( 100 % 6 \)', {OUT => '13'}],
 
-     # Before 2.0.12, this would output `1'.
+     # Before 2.0.12, this would output '1'.
      ['0bang', '00 \< 0!', {OUT => '0'}, {EXIT => 1}],
 
      # In 5.1.3 and earlier, these would exit with status 0.
@@ -69,7 +69,7 @@ my @Tests =
      ['orempty', '"" \| ""', {OUT => '0'}, {EXIT => 1}],
 
 
-     # This erroneously succeeded and output `3' before 2.0.12.
+     # This erroneously succeeded and output '3' before 2.0.12.
      ['fail-a', '3 + -', {ERR => "$prog: non-integer argument\n"},
       {EXIT => 2}],
 
@@ -174,7 +174,7 @@ my @Tests =
 `expr $big_prod '*' $big_prod '*' $big_prod`
   or @Tests = grep {$_->[0] !~ /^bignum-/} @Tests;
 
-# Append a newline to end of each expected `OUT' string.
+# Append a newline to end of each expected 'OUT' string.
 my $t;
 foreach $t (@Tests)
   {
index 71f850ae47025ef5e653f4b465be9df6634fd55a..d5565d66c7c6f6e96bfed40acdfa9a8263632506 100755 (executable)
@@ -68,7 +68,7 @@ my @Tests =
     );
 
 # Prepend the command line argument and append a newline to end
-# of each expected `OUT' string.
+# of each expected 'OUT' string.
 my $t;
 
 Test:
index b93eb379672487979a08e5d4b5fb7b9ef956117a..c89d11856983b7ecc978de6cfe4ab371160223fb 100755 (executable)
@@ -74,7 +74,7 @@ test "x$v" = "x$VERSION" \
 for lang in C fr da; do
   for i in $built_programs; do
 
-    # Skip `test'; it doesn't accept --help or --version.
+    # Skip 'test'; it doesn't accept --help or --version.
     test $i = test && continue;
 
     # false fails even when invoked with --help or --version.
@@ -84,7 +84,7 @@ for lang in C fr da; do
       continue
     fi
 
-    # The just-built install executable is always named `ginstall'.
+    # The just-built install executable is always named 'ginstall'.
     test $i = install && i=ginstall
 
     # Make sure they exit successfully, under normal conditions.
@@ -95,7 +95,7 @@ for lang in C fr da; do
     grep "$PACKAGE_BUGREPORT" h-$i > /dev/null || fail=1
     rm -f h-$i
 
-    # Make sure they fail upon `disk full' error.
+    # Make sure they fail upon 'disk full' error.
     if test -w /dev/full && test -c /dev/full; then
       env $i --help    >/dev/full 2>/dev/null && fail=1
       env $i --version >/dev/full 2>/dev/null && fail=1
@@ -139,7 +139,7 @@ chown_setup () { args=--version; }
 mkfifo_setup () { args=--version; }
 mknod_setup () { args=--version; }
 # Punt on uptime, since it fails (e.g., failing to get boot time)
-# on some systems, and we shouldn't let that stop `make check'.
+# on some systems, and we shouldn't let that stop 'make check'.
 uptime_setup () { args=--version; }
 
 # Create a file in the current directory, not in $TMPDIR.
@@ -198,7 +198,7 @@ basename_setup () { args=$tmp_in; }
 dirname_setup () { args=$tmp_in; }
 expr_setup () { args=foo; }
 
-# Punt, in case GNU `id' hasn't been installed yet.
+# Punt, in case GNU 'id' hasn't been installed yet.
 groups_setup () { args=--version; }
 
 pathchk_setup () { args=$tmp_in; }
index 32e21c7571b2069a5b49dce37cf105d5fc4a87aa..1f536005c77e9d278859427a53343424b2788ace 100755 (executable)
@@ -145,7 +145,7 @@ my @Tests =
      ['emptydir-x2', 'd d',  {OUT => "d:\n\nd:\n"}, $mkdir, $rmdir],
      ['emptydir-R', '-R d',  {OUT => "d:\n"}, $mkdir, $rmdir],
 
-     # test `ls -R .' ............................................
+     # test 'ls -R .' ............................................
      ['R-dot', '--ignore="[a-ce-zA-Z]*" -R .',  {OUT => ".:\nd\n\n\./d:\n"},
       $mkdir, $rmdir],
 
index 6a227c4d94ba8914d6240701f16294ca3cc02b84..a60b85524b2d3b97ab345cc177c6dca83568996a 100755 (executable)
@@ -112,8 +112,8 @@ and for tmpfs file systems on Solaris 5.5.1.
 It is also expected to fail on a btrfs file system until
 http://bugzilla.redhat.com/591068 is addressed.
 
-In the output below, `c' should have had a ctime more recent than
-that of `a', but does not.
+In the output below, 'c' should have had a ctime more recent than
+that of 'a', but does not.
 EOF
   #'
   ls -ctl --full-time a c
index b01e4c5ad8144691eae53d2b05396c2ee60ae05f..7c7356535750fc7b4dc9a955bcbb26aebd7a3ed1 100755 (executable)
@@ -129,7 +129,7 @@ my @Tests =
       {ERR=> "$prog: h: no properly formatted MD5 checksum lines found\n"}],
     );
 
-# Insert the `--text' argument for each test.
+# Insert the '--text' argument for each test.
 my $t;
 foreach $t (@Tests)
   {
index d16fe0bcd205a79a97d0d3bed582de534d471bdf..8226d7ab747fa72f0403c18bacd8dc0232b69e32 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# make sure `md5sum -c' works for alternate BSD format (md5 -r)
+# make sure 'md5sum -c' works for alternate BSD format (md5 -r)
 
 # Copyright (C) 2011-2012 Free Software Foundation, Inc.
 
index e8753263ec597b9d1688d3ba556cf15764c060af..bb7cb58092f9d5ee066007dc89599d3c5de5c71d 100755 (executable)
@@ -44,7 +44,7 @@ NA LAST NA
 '
 set $tests
 
-# Require that this test be run at `nice' level 0.
+# Require that this test be run at 'nice' level 0.
 niceness=`nice`
 if test "$niceness" = 0; then
     : ok
index 99af1e66ff3bafe69651d42f14e95b2b3a75cb04..e20a22c7052ea39ca13dd27ea620ac44f69b9b05 100755 (executable)
@@ -27,9 +27,9 @@ nohup sh -c 'echo stdout; echo stderr 1>&2' 2>err || fail=1
 if test -t 1; then
   test "`cat nohup.out`" = stdout || fail=1
   if test -t 0; then
-    echo 'nohup: ignoring input and appending output to `nohup.out'\'
+    echo 'nohup: ignoring input and appending output to 'nohup.out'\'
   else
-    echo 'nohup: appending output to `nohup.out'\'
+    echo 'nohup: appending output to 'nohup.out'\'
   fi >exp || fail=1
 else
   # Here it should not even exist.
@@ -85,8 +85,8 @@ if test -t 1; then
 fi
 
 cat <<\EOF > exp || fail=1
-nohup: appending output to `nohup.out'
-nohup: cannot run command `no-such-command': No such file or directory
+nohup: appending output to 'nohup.out'
+nohup: cannot run command 'no-such-command': No such file or directory
 EOF
 # Disable these comparisons.  Too much variation in 2nd line.
 # compare exp err || fail=1
@@ -105,8 +105,8 @@ if test -t 1; then
 fi
 
 cat <<\EOF > exp || fail=1
-nohup: appending output to `nohup.out'
-nohup: cannot run command `./k': Permission denied
+nohup: appending output to 'nohup.out'
+nohup: cannot run command './k': Permission denied
 EOF
 # Disable these comparisons.  Too much variation in 2nd line.
 # compare exp err || fail=1
index d2169bfd9ab0cd56d1080a35a2631af08910e506..4f6c08d3a0706bac790f4e9108f52a3951cec762 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Verify that `od -N N' reads no more than N bytes of input.
+# Verify that 'od -N N' reads no more than N bytes of input.
 
 # Copyright (C) 2001, 2004-2012 Free Software Foundation, Inc.
 
index 1a927265cbd0ab6ff8ce9fa50dfdf51f8299c8da..30e592d4808e733a866f5f34da50ede3469b3a80 100755 (executable)
@@ -27,7 +27,7 @@ getlimits_
 # Verify the 3 methods of specifying "Escape":
 test $($prog "\x1b\n\33\n\e\n" | uniq -u) && fail=1
 
-# This would fail (by printing the `--') for printf in sh-utils
+# This would fail (by printing the '--') for printf in sh-utils
 # and in coreutils 4.5.1.
 $prog -- 'foo\n' > out || fail=1
 cat <<\EOF > exp
@@ -53,13 +53,13 @@ POSIXLY_CORRECT=1 \
 $prog '4 \x40\n'      >> out || fail=1
 $prog '5 % +d\n' 234  >> out || fail=1
 
-# This should print "6 !\n", but don't rely on `!' being the
+# This should print "6 !\n", but don't rely on '!' being the
 # one-byte representation of octal 041.  With printf prior to
 # coreutils-5.0.1, it would print six bytes: "6 \41\n".
 $prog '6 \41\n' | tr '\41' '!' >> out
 
 # Note that as of coreutils-5.0.1, printf with a format of '\0002x'
-# prints a NUL byte followed by the digit `2' and an `x'.
+# prints a NUL byte followed by the digit '2' and an 'x'.
 # By contrast bash's printf outputs the same thing as $(printf '\2x') does.
 $prog '7 \2y \02y \002y \0002y\n' |tr '\0\2' '*=' >> out
 
index 811366b671eddeda51eeb560835d4d0c1fdf595d..75d1e4bbb361b0b44d6c86bb118124bfbe89b610 100755 (executable)
@@ -76,7 +76,7 @@ my @Tests =
       {ERR=> "$prog: z: no properly formatted SHA1 checksum lines found\n"}],
     );
 
-# Insert the `--text' argument for each test.
+# Insert the '--text' argument for each test.
 my $t;
 foreach $t (@Tests)
   {
index 172a0eabc4426ba6b970d312f842a30b6b69ad03..4c7c06afded874b1c971da41b0064ed99e7a2121 100755 (executable)
@@ -522,7 +522,7 @@ foreach $t (@Tests)
     my $h = $t->[2];
     $h->{OUT} = lc $h->{OUT} . "  f\n";
 
-    # Insert the `--text' argument for each test.
+    # Insert the '--text' argument for each test.
     splice @$t, 1, 0, '--text';
   }
 
index 9179ace8de3678eb3375ad540099c02fa2c0f7a5..5efc961ed2fb289d73d7cc122727fd7f0cf7770f 100755 (executable)
@@ -34,7 +34,7 @@ my @Tests =
       {OUT=>"20794655980c91d8bbb4c1ea97618a4bf03f42581948b2ee4ee7ad67  f\n"}],
     );
 
-# Insert the `--text' argument for each test.
+# Insert the '--text' argument for each test.
 my $t;
 foreach $t (@Tests)
   {
index 44fbc1d6f27c708fb4144f3db245daa79696a0ec..d8ac082083c099a0e90c7134ced1e756854449e1 100755 (executable)
@@ -40,7 +40,7 @@ my @Tests =
                         {OUT=>"cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0  f\n"}],
     );
 
-# Insert the `--text' argument for each test.
+# Insert the '--text' argument for each test.
 my $t;
 foreach $t (@Tests)
   {
index 8fc06ab618c04c93e773563749e238b248a6d7a9..8d688e77e9b42bff49542a4abed4f834376fdf3e 100755 (executable)
@@ -40,7 +40,7 @@ my @Tests =
                         {OUT=>"9d0e1809716474cb086e834e310a4a1ced149e9c00f248527972cec5704c2a5b07b8b3dc38ecc4ebae97ddd87f3d8985  f\n"}],
     );
 
-# Insert the `--text' argument for each test.
+# Insert the '--text' argument for each test.
 my $t;
 foreach $t (@Tests)
   {
index bf525861a4a1a89571b3b841ae032d15f2a8c6e8..0c976d56e32177f5177c2f19a5f40f14850cb6a4 100755 (executable)
@@ -40,7 +40,7 @@ my @Tests =
                         {OUT=>"e718483d0ce769644e2e42c7bc15b4638e1f98b13b2044285632a803afa973ebde0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b  f\n"}],
     );
 
-# Insert the `--text' argument for each test.
+# Insert the '--text' argument for each test.
 my $t;
 foreach $t (@Tests)
   {
index 64fb1023a069944e72343ff52273afbc76b02124..ea27faa2513d98414c6d06b148f3a395492bf252 100755 (executable)
@@ -156,10 +156,10 @@ my @Tests =
 ["07l", '-s +0 -1.2', {IN=>"a c\na b\n"}, {OUT=>"a b\na c\n"}],
 ["07m", '-s +0 -1.1b', {IN=>"a c\na b\n"}, {OUT=>"a b\na c\n"}],
 #
-# report an error for `.' without following char spec
+# report an error for '.' without following char spec
 ["08a", '-k 2.,3', {EXIT=>2},
  {ERR=>"$prog: invalid number after `.': invalid count at start of `,3'\n"}],
-# report an error for `,' without following POS2
+# report an error for ',' without following POS2
 ["08b", '-k 2,', {EXIT=>2},
  {ERR=>"$prog: invalid number after `,': invalid count at start of `'\n"}],
 #
@@ -172,12 +172,12 @@ my @Tests =
 #
 # Bug reported by Roger Peel <R.Peel@ee.surrey.ac.uk>
 ["10a", '-t : -k 2.2,2.2', {IN=>":ba\n:ab\n"}, {OUT=>":ba\n:ab\n"}],
-# Equivalent to above, but using obsolescent `+pos -pos' option syntax.
+# Equivalent to above, but using obsolescent '+pos -pos' option syntax.
 ["10b", '-t : +1.1 -1.2', {IN=>":ba\n:ab\n"}, {OUT=>":ba\n:ab\n"}],
 #
 # The same as the preceding two, but with input lines reversed.
 ["10c", '-t : -k 2.2,2.2', {IN=>":ab\n:ba\n"}, {OUT=>":ba\n:ab\n"}],
-# Equivalent to above, but using obsolescent `+pos -pos' option syntax.
+# Equivalent to above, but using obsolescent '+pos -pos' option syntax.
 ["10d", '-t : +1.1 -1.2', {IN=>":ab\n:ba\n"}, {OUT=>":ba\n:ab\n"}],
 # Try without -t...
 # But note that we have to count the delimiting space at the beginning
@@ -205,10 +205,10 @@ my @Tests =
 # and the second key spec isn't even used.
 ["11d", '-t: -k2,2b -k3,3', {IN=>"z:a :b\na\t:a\n"}, {OUT=>"a\t:a\nz:a :b\n"}],
 #
-# Exercise bug re comparing `-' and integers.
+# Exercise bug re comparing '-' and integers.
 ["12a", '-n -t: +1', {IN=>"a:1\nb:-\n"}, {OUT=>"b:-\na:1\n"}],
 ["12b", '-n -t: +1', {IN=>"b:-\na:1\n"}, {OUT=>"b:-\na:1\n"}],
-# Try some other (e.g. `X') invalid character.
+# Try some other (e.g. 'X') invalid character.
 ["12c", '-n -t: +1', {IN=>"a:1\nb:X\n"}, {OUT=>"b:X\na:1\n"}],
 ["12d", '-n -t: +1', {IN=>"b:X\na:1\n"}, {OUT=>"b:X\na:1\n"}],
 # From Karl Heuer
@@ -236,22 +236,22 @@ my @Tests =
 # of sort from textutils-1.19p and before.
 ["17", '-c', {IN=>"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"}],
 
-# POSIX says -n no longer implies -b, so here we're comparing ` 9' and `10'.
+# POSIX says -n no longer implies -b, so here we're comparing ' 9' and '10'.
 ["18a", '-k1.1,1.2n', {IN=>" 901\n100\n"}, {OUT=>" 901\n100\n"}],
 
-# Just like above, because the global `-b' has no effect on the
-# key specifier when a key-specific option (`n' in this case) is used.
+# Just like above, because the global '-b' has no effect on the
+# key specifier when a key-specific option ('n' in this case) is used.
 ["18b", '-b -k1.1,1.2n', {IN=>" 901\n100\n"}, {OUT=>" 901\n100\n"}],
 
-# Here we're comparing ` 90' and `10', because the `b' on the key-end specifier
+# Here we're comparing ' 90' and '10', because the 'b' on the key-end specifier
 # makes sort ignore leading blanks when determining that key's *end*.
 ["18c", '-k1.1,1.2nb', {IN=>" 901\n100\n"}, {OUT=>"100\n 901\n"}],
 
-# Here we're comparing `9' and `10', because the `b' on the key-start specifier
+# Here we're comparing '9' and '10', because the 'b' on the key-start specifier
 # makes sort ignore leading blanks when determining that key's *start*.
 ["18d", '-k1.1b,1.2n', {IN=>" 901\n100\n"}, {OUT=>" 901\n100\n"}],
 
-# This compares `90' and `10', as it ignores leading blanks for both
+# This compares '90' and '10', as it ignores leading blanks for both
 # key start and key end.
 ["18e", '-nb -k1.1,1.2', {IN=>" 901\n100\n"}, {OUT=>"100\n 901\n"}],
 
@@ -289,7 +289,7 @@ my @Tests =
 
 # Demonstrate that folding changes the ordering of e.g. A, a, and _
 # because while they normally (in the C locale) collate like A, _, a,
-# when using -f, `a' is compared as if it were `A'.
+# when using -f, 'a' is compared as if it were 'A'.
 ["21a", '', {IN=>"A\na\n_\n"}, {OUT=>"A\n_\na\n"}],
 ["21b", '-f', {IN=>"A\na\n_\n"}, {OUT=>"A\na\n_\n"}],
 ["21c", '-f', {IN=>"a\nA\n_\n"}, {OUT=>"A\na\n_\n"}],
index 085b320f0f206c7e3ae0b97ab05b22d063d5ef3d..09d6720d85d39a36653a3dd31ff3ac18524b092c 100755 (executable)
@@ -35,7 +35,7 @@ EOF
 
 chmod +x gzip
 
-# Ensure `sort` is immune to parent's SIGCHLD handler
+# Ensure 'sort` is immune to parent's SIGCHLD handler
 # Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh.
 (
   # ash doesn't support "trap '' CHLD"; it knows only signal numbers.
index f7dea8c91f9720d44c7f1beddf338c7dca594553..504a2d2bce871a91c48cc7cbc60f9d2eeb0c6fa9 100755 (executable)
@@ -27,27 +27,27 @@ sort: key 1 has zero width and will be ignored
 sort: using simple byte comparison
 sort: key 1 is numeric and spans multiple fields
 sort: using simple byte comparison
-sort: options `-bghMRrV' are ignored
+sort: options '-bghMRrV' are ignored
 sort: using simple byte comparison
-sort: options `-bghMRV' are ignored
-sort: option `-r' only applies to last-resort comparison
+sort: options '-bghMRV' are ignored
+sort: option '-r' only applies to last-resort comparison
 sort: using simple byte comparison
-sort: option `-r' only applies to last-resort comparison
+sort: option '-r' only applies to last-resort comparison
 sort: using simple byte comparison
-sort: options `-bg' are ignored
+sort: options '-bg' are ignored
 sort: using simple byte comparison
 sort: using simple byte comparison
-sort: option `-b' is ignored
+sort: option '-b' is ignored
 sort: using simple byte comparison
 sort: using simple byte comparison
 sort: using simple byte comparison
-sort: leading blanks are significant in key 1; consider also specifying `b'
+sort: leading blanks are significant in key 1; consider also specifying 'b'
 sort: using simple byte comparison
-sort: leading blanks are significant in key 1; consider also specifying `b'
-sort: option `-d' is ignored
+sort: leading blanks are significant in key 1; consider also specifying 'b'
+sort: option '-d' is ignored
 sort: using simple byte comparison
-sort: leading blanks are significant in key 1; consider also specifying `b'
-sort: option `-i' is ignored
+sort: leading blanks are significant in key 1; consider also specifying 'b'
+sort: option '-i' is ignored
 sort: using simple byte comparison
 sort: using simple byte comparison
 sort: using simple byte comparison
@@ -76,11 +76,11 @@ compare exp out || fail=1
 cat <<\EOF > exp
 sort: using simple byte comparison
 sort: key 1 is numeric and spans multiple fields
-sort: obsolescent key `+2 -1' used; consider `-k 3,1' instead
+sort: obsolescent key '+2 -1' used; consider '-k 3,1' instead
 sort: key 2 has zero width and will be ignored
-sort: leading blanks are significant in key 2; consider also specifying `b'
-sort: option `-b' is ignored
-sort: option `-r' only applies to last-resort comparison
+sort: leading blanks are significant in key 2; consider also specifying 'b'
+sort: option '-b' is ignored
+sort: option '-r' only applies to last-resort comparison
 EOF
 
 sort --debug -rb -k2n +2.2 -1b /dev/null 2>out
index 80ad423ce037229132e5ef45e73d6ddf5915e021..1b362ac45c86b0c24413e50f22f4ea87fe0c0cc7 100755 (executable)
@@ -43,7 +43,7 @@ my @Tests =
    # input file name of '-'
    ['minus-in-stdin', '--files0-from=-', '<', {IN=>{f=>'-'}}, {EXIT=>2},
     {ERR => "$prog: when reading file names from stdin, no file name of"
-     . " `-' allowed\n"}],
+     . " '-' allowed\n"}],
 
    # empty input, regular file
    ['empty', '--files0-from=@AUX@', {AUX=>''}, {EXIT=>2},
@@ -58,7 +58,7 @@ my @Tests =
     {ERR => "$prog: -:1: invalid zero-length file name\n"}],
 
    # two NULs
-   # Note that the behavior here differs from `wc' in that the
+   # Note that the behavior here differs from 'wc' in that the
    # first zero-length file name is treated as fatal, so there
    # is only one line of diagnostic output.
    ['nul-2', '--files0-from=-', '<', {IN=>"\0\0"}, {EXIT=>2},
@@ -81,7 +81,7 @@ my @Tests =
     {IN=>{f=>"g\0g\0"}}, {AUX=>{g=>'a'}}, {OUT=>"a\na\n"} ],
 
    # Ensure that $prog does nothing when there is a zero-length filename.
-   # Note that the behavior here differs from `wc' in that the
+   # Note that the behavior here differs from 'wc' in that the
    # first zero-length file name is treated as fatal, so there
    # should be no output on STDOUT.
    ['zero-len', '--files0-from=-', '<',
index 4420deda0e7530deae71fd3643b1375db2f0ef22..99bb24300a628a07d0cb7c39ecd17a975ce4c8c2 100755 (executable)
@@ -96,7 +96,7 @@ retry_delay_ stdbuf_unbuffer .1 6 || fail=1
 #  One could remove the need for dd (used to close the fifo to get uniq to quit
 #  early), if head -n1 read stdin char by char. Note uniq | head -c2 doesn't
 #  suffice due to the buffering implicit in the pipe.  sed currently does read
-#  stdin char by char, so we can test with `sed 1q`.  However I'm wary about
+#  stdin char by char, so we can test with 'sed 1q`.  However I'm wary about
 #  adding this dependency on a program outside of coreutils.
     # printf '2\n' > exp
     # printf '1\n2\n' | (stdbuf -i0 sed 1q >/dev/null; cat) > out
index 689fb8d373e9e0943a2953dc6b06c67318298892..c2999417c7e727b2f6320e4dcefd45c7214e1065 100755 (executable)
@@ -56,9 +56,9 @@ stty -raw -a 2>/dev/null && fail=1
 sed_del='/^speed/d;/^rows/d;/^columns/d;/ = /d'
 options=`stty -a | tr -s ';' '\n' | sed "s/^ //;$sed_del;s/-//g"`
 
-# Take them one at a time, with and without the leading `-'.
+# Take them one at a time, with and without the leading '-'.
 for opt in $options; do
-  # `stty parenb' and `stty -parenb' fail with this message
+  # 'stty parenb' and 'stty -parenb' fail with this message
   # stty: standard input: unable to perform all requested operations
   # on Linux 2.2.0-pre4 kernels.  Also since around Linux 2.6.30
   # other serial control settings give the same error. So skip them.
@@ -68,7 +68,7 @@ for opt in $options; do
 
   stty $opt || fail=1
 
-  # Likewise, `stty -cread' would fail, so skip that, too.
+  # Likewise, 'stty -cread' would fail, so skip that, too.
   test $opt = cread && continue
   rev=`eval echo "\\\$REV_$opt"`
   if test -n "$rev"; then
index b0319b21afd209715792a2cf6dd63489bb0ec214..9a498e85abad08750800e4bb83605129af2ad90c 100755 (executable)
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# Setting this envvar to a very small value used to cause e.g., `stty size'
+# Setting this envvar to a very small value used to cause e.g., 'stty size'
 # to generate slightly different output on certain systems.
 COLUMNS=80
 export COLUMNS
index 4d5454cc306efb097c4a2968b69873239fbfe7ee..6132ee1bc218459d796e82691af5c73ca39418f8 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# make sure `sum -s' works for input whose sum of bytes is larger than 2^32
+# make sure 'sum -s' works for input whose sum of bytes is larger than 2^32
 
 # Copyright (C) 2001-2004, 2006-2012 Free Software Foundation, Inc.
 
index 69392b3e05cf73e3c3cfadad7d33eb4f65849494..91029766450d815bcdf03c86d494631fed3a0298 100755 (executable)
@@ -39,7 +39,7 @@ my @tv = (
 ['obs-plus-l4', '+1l', "x\ny\n", "x\ny\n", 0],
 ['obs-plus-l5', '+2l', "x\ny\n", "y\n", 0],
 
-# Same as -l tests, but without the `l'.
+# Same as -l tests, but without the 'l'.
 ['obs-1', '-1', 'x', 'x', 0],
 ['obs-2', '-1', "x\ny\n", "y\n", 0],
 ['obs-3', '-1', "x\ny", "y", 0],
@@ -64,12 +64,12 @@ my @tv = (
 ['err-3', '+2cz', '', '', 1,
  "$prog: cannot open `+2cz' for reading: No such file or directory\n"],
 
-# This should get `tail: invalid option -- 2'
+# This should get 'tail: invalid option -- 2'
 ['err-4', '-2cX', '', '', 1,
  "$prog: option used in invalid context -- 2\n"],
 
 # Since the number is larger than 2^64, this should provoke
-# the diagnostic: `tail: 99999999999999999999: invalid number of bytes'
+# the diagnostic: 'tail: 99999999999999999999: invalid number of bytes'
 # on all systems... probably, for now, maybe.
 ['err-5', '-c99999999999999999999', '', '', 1,
  "$prog: 99999999999999999999: invalid number of bytes\n"],
index 356268b8e3caad612969e34d5d5ec74cd1cedaaf..aad07d057a0978c5c8c889ea08929ccd274804d9 100755 (executable)
@@ -68,7 +68,7 @@ sub add_inverse_op_tests($)
       my ($flags, $ret, $LoH) = digest_test $t;
 
       # Generate corresponding tests of inverse ops.
-      # E.g. generate tests of `-ge' from those of `-lt'.
+      # E.g. generate tests of '-ge' from those of '-lt'.
       foreach my $op (qw(gt lt eq))
         {
           if ($test_name =~ /$op-/ && $flags =~ / -$op /)
index 997728060bbe0c8cd3172c112dd40eae6b3fb1f8..cc1ad3d6eaa9cc27ff611b8db3c6ae96fe5508c0 100755 (executable)
@@ -42,7 +42,7 @@ test $? = 124 || fail=1
 timeout -s0 -k1 1 sleep 10
 test $? = 124 && fail=1
 
-# Ensure `timeout` is immune to parent's SIGCHLD handler
+# Ensure 'timeout` is immune to parent's SIGCHLD handler
 # Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh.
 (
   # ash doesn't support "trap '' CHLD"; it knows only signal numbers.
index ac2211345a4e892b06e94e647d592b0a32a8a1c8..ac96c98d4af1ac11242942a17aeb2c46a38cb234 100755 (executable)
@@ -43,7 +43,7 @@ my @Tests =
    # input file name of '-'
    ['minus-in-stdin', '--files0-from=-', '<', {IN=>{f=>'-'}}, {EXIT=>1},
     {ERR => "$prog: when reading file names from stdin, no file name of"
-     . " `-' allowed\n"}],
+     . " '-' allowed\n"}],
 
    # empty input, regular file
    ['empty', '--files0-from=@AUX@', {AUX=>''}],
index e1596ee0237ecf2f8ee8b91060cf5feb50126133..d6dcfdd87babf79b7170bb5cc2e0c234148d78cf 100755 (executable)
@@ -22,11 +22,11 @@ print_ver_ mkdir
 mkdir -pv foo/a/b/c/d >out || fail=1
 
 compare - out <<\EOF
-mkdir: created directory `foo'
-mkdir: created directory `foo/a'
-mkdir: created directory `foo/a/b'
-mkdir: created directory `foo/a/b/c'
-mkdir: created directory `foo/a/b/c/d'
+mkdir: created directory 'foo'
+mkdir: created directory 'foo/a'
+mkdir: created directory 'foo/a/b'
+mkdir: created directory 'foo/a/b/c'
+mkdir: created directory 'foo/a/b/c/d'
 EOF
 
 Exit $fail
index 9fa3011573de48753cba7f3988dac547b0635045..9e533215d195aababc27041fc570781acd2c79ce 100755 (executable)
@@ -23,8 +23,8 @@ skip_if_setgid_
 mkdir -m 700 e-dir || framework_failure_
 
 
-# Make sure `mkdir -p existing-dir' succeeds
-# and that `mkdir existing-dir' fails.
+# Make sure 'mkdir -p existing-dir' succeeds
+# and that 'mkdir existing-dir' fails.
 mkdir -p e-dir || fail=1
 mkdir e-dir > /dev/null 2>&1 && fail=1
 
@@ -34,18 +34,18 @@ mode_str=drwxr-x-wx
 mode_arg=`rwx_to_mode_ $mode_str`
 mkdir -m $mode_arg a || fail=1
 
-# this `mkdir -p ...' shouldn't change perms of existing dir `a'.
+# this 'mkdir -p ...' shouldn't change perms of existing dir 'a'.
 d_mode_str=drwx-w--wx
 d_mode_arg=`rwx_to_mode_ $d_mode_str`
 mkdir -p -m $d_mode_arg a/b/c/d
 
-# Make sure the permissions of `a' haven't been changed.
+# Make sure the permissions of 'a' haven't been changed.
 p=`ls -ld a|cut -b-10`; case $p in $mode_str);; *) fail=1;; esac
-# `b's and `c's should reflect the umask
+# 'b's and 'c's should reflect the umask
 p=`ls -ld a/b|cut -b-10`; case $p in drwx------);; *) fail=1;; esac
 p=`ls -ld a/b/c|cut -b-10`; case $p in drwx------);; *) fail=1;; esac
 
-# `d's perms are determined by the -m argument.
+# 'd's perms are determined by the -m argument.
 p=`ls -ld a/b/c/d|cut -b-10`; case $p in $d_mode_str);; *) fail=1;; esac
 
 Exit $fail
index bec30ae9bc5be6ca4151f9c277fa86ea117ae5b6..048fafcc0390a9a501aaaf60a390ee98ca93af4c 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Verify that mkdir's `-m MODE' option works properly
+# Verify that mkdir's '-m MODE' option works properly
 # with various umask settings.
 
 # Copyright (C) 2000, 2002-2012 Free Software Foundation, Inc.
index f28e5b4c127e2afe66dac95784cb937a335986c9..40f2c756a5909778baa3ddc257bed1004ac1fa16 100755 (executable)
@@ -23,10 +23,10 @@ mkdir A B || framework_failure_
 touch X Y || framework_failure_
 
 
-# Before coreutils-6.2, the " (backup: `B.~1~')" suffix was not printed.
+# Before coreutils-6.2, the " (backup: 'B.~1~')" suffix was not printed.
 mv --verbose --backup=numbered -T A B > out || fail=1
 cat <<\EOF > exp || fail=1
-`A' -> `B' (backup: `B.~1~')
+'A' -> 'B' (backup: 'B.~1~')
 EOF
 
 compare exp out || fail=1
index 5fc2ecf523f72e3c25f8d62233e4447f81d9fed7..ce51001a556aa9c92a8cb2f8622156e32271986c 100755 (executable)
@@ -38,7 +38,7 @@ sed \
   out > out2
 
 cat > exp <<\EOF
-XXX: backing up `YYY' would destroy source;  `ZZZ' not moved
+XXX: backing up 'YYY' would destroy source;  'ZZZ' not moved
 EOF
 
 compare exp out2 || fail=1
index c8ba7f3e7d7e61b80ff61b77ab6489ae38003771..7fbe46bd621cf67f0054203a3a6f031f9b042f17 100755 (executable)
@@ -37,10 +37,10 @@ mv --target=f2 f1 >> out 2>&1 && fail=1
 cat > exp <<\EOF
 mv: missing file operand
 Try 'mv --help' for more information.
-mv: missing destination file operand after `no-file'
+mv: missing destination file operand after 'no-file'
 Try 'mv --help' for more information.
-mv: target `f1' is not a directory
-mv: target `f2' is not a directory
+mv: target 'f1' is not a directory
+mv: target 'f2' is not a directory
 EOF
 
 compare exp out || fail=1
index 133be83282d5cdd33a1fea68210722c0ffc7c99c..c170de20a11e6b8ee55cac9fc2519d05023da6ae 100755 (executable)
@@ -34,7 +34,7 @@ sed             's/: File exists/: Directory not empty/'<out>o1;mv o1 out
 sed 's/: Device or resource busy/: Directory not empty/'<out>o1;mv o1 out
 
 cat <<\EOF > exp || fail=1
-mv: cannot move `b/t' to `a/t': Directory not empty
+mv: cannot move 'b/t' to 'a/t': Directory not empty
 EOF
 
 compare exp out || fail=1
index 7a34472d8aff86c99bdc15aad9d141e0ff16f961..0b102b9bc316587ea0c64fbf9b8c6b9e6a6161d7 100755 (executable)
@@ -37,7 +37,7 @@ for i in cp; do
   rm -fr a d; touch a; mkdir d
   $i --backup=numbered a a d/ 2>> out || fail=1
 
-  # But not with plain `--backup'
+  # But not with plain '--backup'
   rm -fr a d; touch a; mkdir d
   $i --backup a a d/ 2>> out && fail=1
   cat <<EOF > exp
index 8f51606e28728eab6dab65115a65610ed2b53c8e..9a7a2a376489e0b520f9489fe1d94c3d0900f4b1 100755 (executable)
 # To exercise this bug is non-trivial:
 # Set-up requires at least three hard-linked files.  In copying them,
 # while preserving links, the initial copy must succeed, the attempt
-# to create the second file via `link' must fail, and the final `link'
+# to create the second file via 'link' must fail, and the final 'link'
 # (to create the third) must succeed.  Before the corresponding fix,
 # the first and third destination files would not be linked.
 #
-# Note that this is nominally a test of `cp', yet it is in the tests/mv
+# Note that this is nominally a test of 'cp', yet it is in the tests/mv
 # directory, because it requires use of the --preserve=link option that
 # mv enables by default.
 
index f6c63852e08cd40bcce8efa0d165d9de601517b8..41c4187ea3e53af22aa614fcb30b5a26eb1494b5 100755 (executable)
@@ -25,7 +25,7 @@ ln x y || framework_failure_
 
 mv --verbose x y > out || fail=1
 cat <<\EOF > exp || fail=1
-removed `x'
+removed 'x'
 EOF
 
 compare exp out || fail=1
index b2eb59c221129daad136221108848c07daaae41a..20b6ad7b966fb03dfd3eea65d3edef1747d5ab8b 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-# Make sure a `n' reply to `mv -i...' aborts the move operation.
+# Make sure a 'n' reply to 'mv -i...' aborts the move operation.
 
 # Copyright (C) 2001, 2003, 2005-2012 Free Software Foundation, Inc.
 
@@ -27,7 +27,7 @@ my $test_a = 'a';
 
 my @Tests =
     (
-     # Make sure a `n' reply to `mv -i...' aborts the move operation.
+     # Make sure a 'n' reply to 'mv -i...' aborts the move operation.
      [$test_a, '-i',
       {IN => {src => "a\n"}}, {IN => {dst => "b\n"}}, '<', {IN => "n\n"},
       {ERR => "mv: overwrite `dst'? "},
index 1851d42d86ef91191d056845e8d056b6a7f0f483..050377d3598389305db1b85753c61eb1bacfbc14 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
-# Make sure that `mv file unwritable-file' prompts the user
-# and that `mv -f file unwritable-file' doesn't.
+# Make sure that 'mv file unwritable-file' prompts the user
+# and that 'mv -f file unwritable-file' doesn't.
 
 # Copyright (C) 2001, 2004, 2006-2012 Free Software Foundation, Inc.
 
index b2222c778c25d9b7c1eafb79ce7cad50e57f3509..5a95e996390e533ca3f91daf7df233886c6c7274 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# make sure `mv -i a b' does its job with a positive response
+# make sure 'mv -i a b' does its job with a positive response
 
 # Copyright (C) 2001, 2005-2012 Free Software Foundation, Inc.
 
@@ -32,9 +32,9 @@ case "`cat b`" in
   *) fail=1 ;;
 esac
 
-# Ensure that mv -i a b works properly with `n' and `y'
+# Ensure that mv -i a b works properly with 'n' and 'y'
 # responses, even when a and b are hard links to the same file.
-# This `n' test would fail (no prompt) for coreutils-5.0.1 through 5.3.0.
+# This 'n' test would fail (no prompt) for coreutils-5.0.1 through 5.3.0.
 echo n > n
 rm -f a b
 echo a > a
index 374c6beda120005010fa42f97c3eb5550948832b..76cacabe3a454bdbd8c0d5d20a1ba73c2e14f3b6 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Make sure `mv -i dir file' prompts before failing.
+# Make sure 'mv -i dir file' prompts before failing.
 
 # Copyright (C) 2006-2012 Free Software Foundation, Inc.
 
index 1405b7fb6a1065404130d3d25bf75dbd0435b385..87c2d8e4054b342d31659238cd083ea5d7ff4989 100755 (executable)
@@ -37,7 +37,7 @@ sed \
   out > out2
 
 cat > exp <<\EOF
-XXX: cannot move `SRC' to a subdirectory of itself, `DEST'
+XXX: cannot move 'SRC' to a subdirectory of itself, 'DEST'
 EOF
 
 compare exp out2 || fail=1
index ddbf2ec5363a3ffc135c9b280892b9b5aa592d03..d5d92185745cd8ccb04803a9883c118b32b9f6da 100755 (executable)
@@ -43,7 +43,7 @@ sed \
   out > out2
 
 cat > exp <<\EOF
-XXX: `ZZZ' and `YYY' are the same file
+XXX: 'ZZZ' and 'YYY' are the same file
 EOF
 #'
 
index 1042d1364de95df53784f5979e77d0dd26edf02c..ec7d02cc79eb4c7e86c39b0ee6c249a7e0b39249 100755 (executable)
@@ -33,7 +33,7 @@ sed \
   out > out2
 
 cat > exp <<\EOF
-XXX: cannot move `ZZZ' to a subdirectory of itself, `ZZZ/ZZZ'
+XXX: cannot move 'ZZZ' to a subdirectory of itself, 'ZZZ/ZZZ'
 EOF
 
 compare exp out2 || fail=1
index 717e12ea03271d74aa9074c0625b47d7a7a87a6e..8df87a2cc24f5dba1461b0661eeb7e1d38572418 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# confirm that `mv symlink symlink' doesn't remove symlink
+# confirm that 'mv symlink symlink' doesn't remove symlink
 # Based on an example from David Luyer.
 
 # Copyright (C) 2001, 2004, 2006-2012 Free Software Foundation, Inc.
@@ -28,7 +28,7 @@ ln -s file s || framework_failure_
 mv s s 2> /dev/null && fail=1
 
 # But the symlink, s, must not be removed.
-# Before 4.0.36, `s' would have been removed.
+# Before 4.0.36, 's' would have been removed.
 test -f s || fail=1
 
 Exit $fail
index ed74e02b5961ea87a41f1662afa02f1a1c22ec0b..f5d2bb3eea33807b311114bd84d761e28f54a2f3 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh
-# Make sure we give a sensible diagnostic when a cross-device `mv'
+# Make sure we give a sensible diagnostic when a cross-device 'mv'
 # fails, e.g., because the destination cannot be unlinked.
 # This is a bit fragile since it relies on the string used
-# for EPERM: `permission denied'.
+# for EPERM: 'permission denied'.
 
 # Copyright (C) 2002, 2004, 2006-2012 Free Software Foundation, Inc.
 
@@ -31,7 +31,7 @@ chmod u-w "$other_partition_tmpdir" || framework_failure_
 
 mv -f k "$other_partition_tmpdir" 2> out && fail=1
 printf \
-'mv: inter-device move failed: `%s'\'' to `%s'\'';'\
+'mv: inter-device move failed: '%s'\'' to '%s'\'';'\
 ' unable to remove target: Permission denied\n' \
   k "$other_partition_tmpdir/k" >exp
 
index bb0ccaaad9cf15b97f04768fa9b1777236fb5970..82a82c6742f34fc3f61f31cca8309d2df8d55e7d 100755 (executable)
@@ -24,12 +24,12 @@ cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
 # On NFS on Linux 2.6.9 at least we get:
-# mv: preserving permissions for `rem_sl': Operation not supported
+# mv: preserving permissions for 'rem_sl': Operation not supported
 require_local_dir_
 
 pwd_tmp=`pwd`
 
-# Unset CDPATH.  Otherwise, output from the `cd dir' command
+# Unset CDPATH.  Otherwise, output from the 'cd dir' command
 # can make this test fail.
 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
@@ -152,7 +152,7 @@ test $fail = 1 &&
 
 cat <<\EOF > expected
 1 cp loc_reg rem_sl
- [cp: `loc_reg' and `rem_sl' are the same file]
+ [cp: 'loc_reg' and 'rem_sl' are the same file]
  (loc_reg) (rem_sl -> dir/loc_reg)
 0 cp --rem loc_reg rem_sl
  (loc_reg) (rem_sl)
@@ -165,57 +165,57 @@ cat <<\EOF > expected
 0 cp -bd loc_reg rem_sl
  (loc_reg) (rem_sl rem_sl~ -> dir/loc_reg)
 1 cp -d loc_reg rem_sl
- [cp: `loc_reg' and `rem_sl' are the same file]
+ [cp: 'loc_reg' and 'rem_sl' are the same file]
  (loc_reg) (rem_sl -> dir/loc_reg)
 
 1 cp rem_sl loc_reg
- [cp: `rem_sl' and `loc_reg' are the same file]
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
  (loc_reg) (rem_sl -> dir/loc_reg)
 1 cp --rem rem_sl loc_reg
- [cp: `rem_sl' and `loc_reg' are the same file]
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
  (loc_reg) (rem_sl -> dir/loc_reg)
 1 cp --rem -d rem_sl loc_reg
- [cp: `rem_sl' and `loc_reg' are the same file]
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
  (loc_reg) (rem_sl -> dir/loc_reg)
 1 cp --rem -b rem_sl loc_reg
- [cp: `rem_sl' and `loc_reg' are the same file]
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
  (loc_reg) (rem_sl -> dir/loc_reg)
 1 cp -b rem_sl loc_reg
- [cp: `rem_sl' and `loc_reg' are the same file]
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
  (loc_reg) (rem_sl -> dir/loc_reg)
 0 cp -bd rem_sl loc_reg
  (loc_reg -> dir/loc_reg loc_reg~) (rem_sl -> dir/loc_reg)
  symlink-loop
  symlink-loop
 1 cp -d rem_sl loc_reg
- [cp: `rem_sl' and `loc_reg' are the same file]
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
  (loc_reg) (rem_sl -> dir/loc_reg)
 
 1 cp loc_sl rem_reg
- [cp: `loc_sl' and `rem_reg' are the same file]
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
  (loc_sl -> rem_reg) (rem_reg)
 1 cp --rem loc_sl rem_reg
- [cp: `loc_sl' and `rem_reg' are the same file]
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
  (loc_sl -> rem_reg) (rem_reg)
 1 cp --rem -d loc_sl rem_reg
- [cp: `loc_sl' and `rem_reg' are the same file]
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
  (loc_sl -> rem_reg) (rem_reg)
 1 cp --rem -b loc_sl rem_reg
- [cp: `loc_sl' and `rem_reg' are the same file]
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
  (loc_sl -> rem_reg) (rem_reg)
 1 cp -b loc_sl rem_reg
- [cp: `loc_sl' and `rem_reg' are the same file]
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
  (loc_sl -> rem_reg) (rem_reg)
 0 cp -bd loc_sl rem_reg
  (loc_sl -> rem_reg) (rem_reg -> rem_reg rem_reg~)
  symlink-loop
  symlink-loop
 1 cp -d loc_sl rem_reg
- [cp: `loc_sl' and `rem_reg' are the same file]
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
  (loc_sl -> rem_reg) (rem_reg)
 
 1 cp rem_reg loc_sl
- [cp: `rem_reg' and `loc_sl' are the same file]
+ [cp: 'rem_reg' and 'loc_sl' are the same file]
  (loc_sl -> rem_reg) (rem_reg)
 0 cp --rem rem_reg loc_sl
  (loc_sl) (rem_reg)
@@ -228,7 +228,7 @@ cat <<\EOF > expected
 0 cp -bd rem_reg loc_sl
  (loc_sl loc_sl~ -> rem_reg) (rem_reg)
 1 cp -d rem_reg loc_sl
- [cp: `rem_reg' and `loc_sl' are the same file]
+ [cp: 'rem_reg' and 'loc_sl' are the same file]
  (loc_sl -> rem_reg) (rem_reg)
 
 0 mv loc_reg rem_sl
@@ -237,13 +237,13 @@ cat <<\EOF > expected
  () (rem_sl rem_sl~ -> dir/loc_reg)
 
 1 mv rem_sl loc_reg
- [mv: `rem_sl' and `loc_reg' are the same file]
+ [mv: 'rem_sl' and 'loc_reg' are the same file]
  (loc_reg) (rem_sl -> dir/loc_reg)
 0 mv -b rem_sl loc_reg
  (loc_reg -> dir/loc_reg loc_reg~) ()
 
 1 mv loc_sl rem_reg
- [mv: `loc_sl' and `rem_reg' are the same file]
+ [mv: 'loc_sl' and 'rem_reg' are the same file]
  (loc_sl -> rem_reg) (rem_reg)
 0 mv -b loc_sl rem_reg
  () (rem_reg -> rem_reg rem_reg~)
index 9bdc64e9ae0928f81c0a27335a0bcb797a3cb687..b1c9842ea4daafce83ac5a5fb3b0c15be002e2fb 100755 (executable)
@@ -27,7 +27,7 @@ chmod u-w no-write || framework_failure_
 
 mv no-write/dir . > out 2>&1 && fail=1
 cat <<\EOF > exp
-mv: cannot move `no-write/dir' to `./dir': Permission denied
+mv: cannot move 'no-write/dir' to './dir': Permission denied
 EOF
 
 compare exp out || fail=1
index 348a31ad34e279ad3c8f2f2960968b6c36849458..954cb8f0e7d8d26bc13faacce017fcf63d0a57aa 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # A cross-partition move of a file in a sticky tmpdir and owned by
 # someone else would evoke an invalid diagnostic:
-# mv: cannot remove `x': Operation not permitted
+# mv: cannot remove 'x': Operation not permitted
 # Affects coreutils-6.0-6.9.
 
 # Copyright (C) 2007-2012 Free Software Foundation, Inc.
@@ -53,13 +53,13 @@ esac
 setuidgid $NON_ROOT_USERNAME env PATH="$PATH" \
   mv t/root-owned "$other_partition_tmpdir" 2> out-t && fail=1
 
-# On some systems, we get `Not owner'.  Convert it.
-# On other systems (HPUX), we get `Permission denied'.  Convert it, too.
+# On some systems, we get 'Not owner'.  Convert it.
+# On other systems (HPUX), we get 'Permission denied'.  Convert it, too.
 onp='Operation not permitted'
 sed "s/Not owner/$onp/;s/Permission denied/$onp/" out-t > out
 
 cat <<\EOF > exp
-mv: cannot remove `t/root-owned': Operation not permitted
+mv: cannot remove 't/root-owned': Operation not permitted
 EOF
 
 compare exp out || fail=1
index 8ed33422171a3e3599e6010ee3841b881f292245..78b1ccc0aa74cf7b954f6de26ab3a43837700568 100644 (file)
@@ -24,7 +24,7 @@ cat <<\EOF
 Prior to 5.0.91, ...
 
 The problem:
-  On a VFAT file system with coreutils-5.0.90, `mv FOO foo' removes the
+  On a VFAT file system with coreutils-5.0.90, 'mv FOO foo' removes the
   sole copy of the file named by both the source and destination arguments.
 
 Demonstrate the problem, as root:
@@ -45,9 +45,9 @@ And in case you actually do the above, you can do this to clean up:
   cd /tmp && umount /tmp/mnt && rm -r 1 mnt
 
 Hey!  Can't create hard links on vfat.
-The above `ln' evokes an `operation not permitted' failure.
+The above 'ln' evokes an 'operation not permitted' failure.
 
-This demonstrates the same thing with file system type `umsdos'
+This demonstrates the same thing with file system type 'umsdos'
 No hard links:
 
 cd /tmp                                    \
index 0cfca13b258897e8991940511f10134b9f8d8b0e..de10612252c255c87ab0d9421cd5f2c309d3aa1a 100755 (executable)
@@ -308,9 +308,9 @@ my @tv = (
 ['13bb', '-t -n: -2 -e8', [\'t_tab'], [\'tn_2e8-t_tab'], 0],
 ['13bc', '-t -n: -2 -e8 -S----', [\'t_tab'], [\'tn_2e8S-t_tab'], 0],
 ['13bd', '-t -n -2 -e8 -o3', [\'t_tab'], [\'tn2e8o3-t_tab'], 0],
-# number-separator TAB not treated as input text-tab, no `-e' expansion
+# number-separator TAB not treated as input text-tab, no '-e' expansion
 ['13be', '-t -n -2 -e5 -o3', [\'t_tab'], [\'tn2e5o3-t_tab'], 0],
-# input-tab-char `:' not equal default (text) TABs
+# input-tab-char ':' not equal default (text) TABs
 ['13bf', '-t -n -2 -e:8', [\'t_tab_'], [\'tn2e8-t_tab'], 0],
 #
 # options -w/-s: POSIX-compliant, means adapting the interference of -w/-s
@@ -326,10 +326,10 @@ my @tv = (
 # columns, truncated = 60   /  no separator   (SunOS-BUG: line width to small):
 ['14e', '-2 -s -w60 -f', [\'t_notab'], [\'2sw60f-t_notab'], 0],
 # columns, truncated = 60   /  separator = `:'  (HP-UX.10.20-2-BUG:
-# `:' missing with -m option):
+# ':' missing with -m option):
 ['14f', '-2 -s: -w60 -f', [\'t_notab'], [\'2s_w60f-t_nota'], 0],
 #
-# new long-options -W/-S/-J disentangle those options (see also No.`10*')
+# new long-options -W/-S/-J disentangle those options (see also No.'10*')
 # columns, truncated = 72   /  no separator :
 ['14g', '-2 -S -f', [\'t_notab'], [\'2-Sf-t_notab'], 0],
 # full lines, no truncation /  separator = TAB :  (Input: -S"<TAB>")
index 48e77c23ea87f4700769eaeb82d4c252d105f546..5f1fb3a01a531fc675c7dff60422438cbd78382d 100755 (executable)
@@ -27,8 +27,8 @@ chmod u-w a/b
 
 rm -rf a a 2>&1 | sed 's/:[^:]*$//' > out || fail=1
 cat <<\EOF > exp
-rm: cannot remove `a/b/file'
-rm: cannot remove `a/b/file'
+rm: cannot remove 'a/b/file'
+rm: cannot remove 'a/b/file'
 EOF
 
 compare exp out || fail=1
index fbda20b35a6cb30a5446de91faf9fd1323c5f214..c3632dd62440216abbd7ced75137ceb73b97c358 100755 (executable)
@@ -34,7 +34,7 @@ k200=$k20$k20$k20$k20$k20$k20$k20$k20$k20$k20
 
 # Be careful not to exceed max file name length (usu 512?).
 # Doing so wouldn't affect GNU mkdir or GNU rm, but any tool that
-# operates on the full pathname (like `test') would choke.
+# operates on the full pathname (like 'test') would choke.
 k_deep=$k200$k200
 
 t=t
index 74dfa0c13d86e8814b8f166968b0202185070f67..0342956bae7c6022d525f4face5901c7700b8f73 100755 (executable)
@@ -26,13 +26,13 @@ mkdir --mode=0500 unwritable-dir || framework_failure_
 # For rm from coreutils-5.0.1, this would prompt.
 rm ---presume-input-tty unwritable-dir < /dev/null > out-t 2>&1 && fail=1
 cat <<\EOF > exp || fail=1
-rm: cannot remove `unwritable-dir': Is a directory
+rm: cannot remove 'unwritable-dir': Is a directory
 EOF
 
 # When run by a non-privileged user we get this:
-# rm: cannot remove directory `unwritable-dir': Is a directory
+# rm: cannot remove directory 'unwritable-dir': Is a directory
 # When run by root we get this:
-# rm: cannot remove `unwritable-dir': Is a directory
+# rm: cannot remove 'unwritable-dir': Is a directory
 # Normalize the message.
 sed 's/remove directory/remove/' out-t > out
 rm -f out-t
index edd5d372a38cbe4c7448d715f61ac3990a50a59e..8876e9458f9aaac0392ec210c56815c31edef0fb 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Ensure that `rm dir' (i.e., without --recursive) gives a reasonable
+# Ensure that 'rm dir' (i.e., without --recursive) gives a reasonable
 # diagnostic when failing.
 
 # Copyright (C) 2005-2012 Free Software Foundation, Inc.
@@ -25,7 +25,7 @@ mkdir d || framework_failure_
 
 rm d 2> out && fail=1
 cat <<\EOF > exp || fail=1
-rm: cannot remove `d': Is a directory
+rm: cannot remove 'd': Is a directory
 EOF
 
 # Before coreutils-5.93 this test would fail on Solaris 9 and newer.
index 58fb8505d6e3d7382e82a252035dede92b564083..192a60b4b9c2fe07047b7a344a33ce6c106ebca8 100755 (executable)
@@ -18,7 +18,7 @@
 
 # On SunOS 4.1.3, running rm -r '' in a nonempty directory may
 # actually remove files with names of entries in the current directory
-# but relative to `/' rather than relative to the current directory.
+# but relative to '/' rather than relative to the current directory.
 
 use strict;
 
index 511464e2bf85fa579412ba3b8a52a31a6e671764..56c27c4387f31014e4cbd75b4fbe352793433d12 100755 (executable)
@@ -41,13 +41,13 @@ case $rm_version in
 esac
 setuidgid $NON_ROOT_USERNAME env PATH="$PATH" rm -rf a 2> out-t && fail=1
 
-# On some systems, we get `Not owner'.  Convert it.
-# On other systems (HPUX), we get `Permission denied'.  Convert it, too.
+# On some systems, we get 'Not owner'.  Convert it.
+# On other systems (HPUX), we get 'Permission denied'.  Convert it, too.
 onp='Operation not permitted'
 sed "s/Not owner/$onp/;s/Permission denied/$onp/" out-t > out
 
 cat <<\EOF > exp
-rm: cannot remove `a/b': Operation not permitted
+rm: cannot remove 'a/b': Operation not permitted
 EOF
 
 compare exp out || fail=1
index 1a2d06bb768f522c52b55f01f12002346ca9e132..947dfac36cfb1cc141d3e09df79dfb5aa6aa9894 100755 (executable)
@@ -40,14 +40,14 @@ test $ok = 1 || framework_failure_
 
 rm -rf d/f 2> out && fail=1
 cat <<\EOF > exp
-rm: cannot remove `d/f': Permission denied
+rm: cannot remove 'd/f': Permission denied
 EOF
 compare exp out || fail=1
 
 # This used to fail with ELOOP.
 rm -rf e 2> out && fail=1
 cat <<\EOF > exp
-rm: cannot remove `e/slink': Permission denied
+rm: cannot remove 'e/slink': Permission denied
 EOF
 compare exp out || fail=1
 
index d7d3c0186691debb620bb871b9bf34642e6848ac..8a3e76958c3c7373c8d2b1ce9ff9dc4ab11c859c 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Since the rewrite for fileutils-4.1.9, `rm -i DIR' would mistakenly
+# Since the rewrite for fileutils-4.1.9, 'rm -i DIR' would mistakenly
 # recurse into directory DIR.  rm -i (without -r) must fail in that case.
 # Fixed in coreutils-4.5.2.
 
index 2bcdc11d9c499e0cf38f184ddf0b335c21ad9407..517a384f9c1218a8f14dad6e28e2322b3e2b56f8 100755 (executable)
@@ -35,7 +35,7 @@ test -d "$p/abs1" && fail=1
 test -d "$p/abs2" && fail=1
 
 cat <<\EOF > exp || fail=1
-rm: cannot remove `rel': Permission denied
+rm: cannot remove 'rel': Permission denied
 EOF
 
 # AIX 4.3.3 fails with a different diagnostic.
index 99aedbbf7df30064fbf6a8f73d4af3ca91c778ce..41c8f4131ebfea9aef9aed6b489c2fe7cf8a720d 100755 (executable)
@@ -70,13 +70,13 @@ cat <<\EOF > expout || fail=1
 EOF
 sed 's/@remove_empty/rm: remove regular empty file/g' <<\EOF > experr || fail=1
 no WHEN
-@remove_empty `file1-1'? @remove_empty `file1-2'? .
+@remove_empty 'file1-1'? @remove_empty 'file1-2'? .
 WHEN=never
 .
 WHEN=once
 rm: remove all arguments recursively? .
 WHEN=always
-@remove_empty `file4-1'? @remove_empty `file4-2'? .
+@remove_empty 'file4-1'? @remove_empty 'file4-2'? .
 -f overrides --interactive
 .
 --interactive overrides -f
index 3b7d1b39dc8e6d1e14c29ace91c54d0c1dd4e189..b1e558b66862e72deb15b41a3bd2932edef2ea10 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Make sure `chown 0 f; rm f' prompts before removing f.
+# Make sure 'chown 0 f; rm f' prompts before removing f.
 
 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
@@ -39,14 +39,14 @@ test -f f || fail=1
 
 kill $pid > /dev/null 2>&1
 
-# Note the trailing `x' -- so I don't have to have a trailing
+# Note the trailing 'x' -- so I don't have to have a trailing
 # blank in this file :-)
 cat > exp <<\EOF
-rm: remove write-protected regular empty file `f'? x
+rm: remove write-protected regular empty file 'f'? x
 EOF
 #`
 
-# Append an `x' and a newline.
+# Append an 'x' and a newline.
 echo x >> out
 
 compare exp out || fail=1
index d0ff2374814b6793ae440566e42a0f5ddffa423d..690c5b617c7c4a54b7ae2403ad43904580bc5156 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# With rm from coreutils-5.2.1 and earlier, `rm -r' would mistakenly
+# With rm from coreutils-5.2.1 and earlier, 'rm -r' would mistakenly
 # give up too early under some conditions.
 
 # Copyright (C) 2004, 2006-2012 Free Software Foundation, Inc.
index e9a5cf0c6af8626b762284c55d8e06d44071aa0d..675c3fd0a36bfac2c6a3b6ae1b1ec828a6957aa6 100755 (executable)
@@ -36,7 +36,7 @@ mount --bind $t a/b \
   || skip_ "This test requires mount with a working --bind option."
 
 cat <<\EOF > exp || framework_failure_
-rm: skipping `a/b', since it's on a different device
+rm: skipping 'a/b', since it's on a different device
 EOF
 
 
index 7d26280b68cceef0abeaf7c1d1474dbe776c5d93..97d0959c143be8e6788133554a11b77337917040 100755 (executable)
@@ -26,9 +26,9 @@ mkdir a a/a || framework_failure_
 > b || framework_failure_
 
 cat <<\EOF > $test.E || framework_failure_
-removed directory: `a/a'
-removed directory: `a'
-removed `b'
+removed directory: 'a/a'
+removed directory: 'a'
+removed 'b'
 EOF
 
 rm --verbose -r a b > $test.O || fail=1
index 55c4807a01cf1fbc17c15e2e552af4415658ec04..0a588316b0db9605b66e76871b27765d04533840 100755 (executable)
@@ -26,10 +26,10 @@ mkdir t t/a t/a/b || framework_failure_
 
 # FIXME: if this fails, it's a framework failure
 cat <<\EOF | sort > t/E || framework_failure_
-removed directory: `t/a'
-removed directory: `t/a/b'
-removed `t/a/b/g'
-removed `t/a/f'
+removed directory: 't/a'
+removed directory: 't/a/b'
+removed 't/a/b/g'
+removed 't/a/f'
 EOF
 
 # Note that both the expected output (above) and the actual output lines
index 591e913060014228bf076c6626bc7d771fe5a535..3835049eecf9032984746ac464634d012fb5df18 100755 (executable)
@@ -33,7 +33,7 @@ cd .. || framework_failure_
 
 
 # On a buggy system, this would fail with the diagnostic,
-# "cannot remove directory `b': Directory not empty"
+# "cannot remove directory 'b': Directory not empty"
 rm -rf b  || fail=1
 
 test -d b && fail=1
index cde576adf41e346fca178633edc5d2f5d6d54fd2..672f0f0a06de95319e802dc98eeed1d3cecc5fe3 100755 (executable)
@@ -27,13 +27,13 @@ chmod u-w b/a || framework_failure_
 # This should fail.
 rm -rf b > out 2>&1 && fail=1
 cat <<\EOF > exp
-rm: cannot remove directory `b/a/p': Permission denied
+rm: cannot remove directory 'b/a/p': Permission denied
 EOF
 
 # On some systems, rm doesn't have enough information to
 # say it's a directory.
 cat <<\EOF > exp2
-rm: cannot remove `b/a/p': Permission denied
+rm: cannot remove 'b/a/p': Permission denied
 EOF
 
 cmp out exp > /dev/null 2>&1 || {
index b1477a3d4f8e80e07e5ca4ddf11a48497e7e16fb..7bbdfeaba3e400f609d28243c87798c827aa505b 100755 (executable)
@@ -31,13 +31,13 @@ chmod u-x a/1 b || framework_failure_
 # Both of these should fail.
 rm -rf a b > out 2>&1 && fail=1
 cat <<\EOF > exp
-rm: cannot remove `a/1': Permission denied
-rm: cannot remove `b': Permission denied
+rm: cannot remove 'a/1': Permission denied
+rm: cannot remove 'b': Permission denied
 EOF
 
 cat <<\EOF > exp-solaris
-rm: cannot remove `a/1/2': Permission denied
-rm: cannot remove `b/3': Permission denied
+rm: cannot remove 'a/1/2': Permission denied
+rm: cannot remove 'b/3': Permission denied
 EOF
 
 cmp out exp > /dev/null 2>&1 \
index 17118d1fe64b5abbf5cc2dc5c73ba50bb34c3add..bf43f5e2d92edbfc0e150ccd91a037e12cb85e4f 100755 (executable)
@@ -46,8 +46,8 @@ EOF
 # Both of these should fail.
 rm -ir z < in > out 2>&1 || fail=1
 
-# Given input like `rm: ...? rm: ...? ' (no trailing newline),
-# the `head...' part of the pipeline below removes the trailing space, so
+# Given input like 'rm: ...? rm: ...? ' (no trailing newline),
+# the 'head...' part of the pipeline below removes the trailing space, so
 # that sed doesn't have to deal with a line lacking a terminating newline.
 # This avoids a bug whereby some vendor-provided (Tru64) versions of sed
 # would mistakenly tack a newline onto the end of the output.
index 09c3b8305b9d147f0718b18bdb78c1c15ff0dc77..63d8029d0719e4d5c5956d6038c108adb7dd34f6 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# ensure that `rm dir' fails without --recursive
+# ensure that 'rm dir' fails without --recursive
 
 # Copyright (C) 2002, 2004, 2006-2012 Free Software Foundation, Inc.
 
index 94753343320f94c305aa26cc2b1b2427afd058e7..2201ec4698cf35604366d95f5b840164cc87424f 100755 (executable)
@@ -28,16 +28,16 @@ y
 EOF
 
 cat <<\EOF > exp || framework_failure_
-rm: descend into directory `d'
-rm: remove directory `d/e'
-rm: remove directory `d'
+rm: descend into directory 'd'
+rm: remove directory 'd/e'
+rm: remove directory 'd'
 EOF
 
 
 rm -ir d < in > out 2>&1 || fail=1
 
-# Given input like `rm: ...? rm: ...? ' (no trailing newline),
-# the `head...' part of the pipeline below removes the trailing space, so
+# Given input like 'rm: ...? rm: ...? ' (no trailing newline),
+# the 'head...' part of the pipeline below removes the trailing space, so
 # that sed doesn't have to deal with a line lacking a terminating newline.
 # This avoids a bug whereby some vendor-provided (Tru64) versions of sed
 # would mistakenly tack a newline onto the end of the output.
index a6bf9ab97bfd4eb7a8cdd63fceb42ac4d9c17846..8f1e746051a38193a485aab3f58bf51b59f791fa 100755 (executable)
@@ -20,7 +20,7 @@
 
 # On SunOS 4.1.3, running rm -r '' in a nonempty directory may
 # actually remove files with names of entries in the current directory
-# but relative to `/' rather than relative to the current directory.
+# but relative to '/' rather than relative to the current directory.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
index 9b352d4601542c952099ae073930873c12bc83af..46fc98cd8aeb01f50b409da27a3cfa581ef1eeb0 100755 (executable)
@@ -27,7 +27,7 @@ chmod u-r a
 # This should fail.
 rm -rf a > out 2>&1 && fail=1
 cat <<\EOF > exp
-rm: cannot remove `a': Permission denied
+rm: cannot remove 'a': Permission denied
 EOF
 
 compare exp out || fail=1
index 113a19ae3bd0860091f046a635e9d531a0938aff..2fae859b2b0e6af009c7bcbf69f74d78c516d2b2 100755 (executable)
@@ -25,8 +25,8 @@ touch a/x || framework_failure_
 
 rm --verbose -r a/// > out || fail=1
 cat <<\EOF > exp || fail=1
-removed `a/x'
-removed directory: `a'
+removed 'a/x'
+removed directory: 'a'
 EOF
 
 compare exp out || fail=1
index ae6f9abbc219d9bc4d7c72e20edf4d2373d02c64..7deba62ea491a47d437483857b55b7a2fea672b4 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# For unwritable directory `d', `rmdir -p d d/e/f' would emit
+# For unwritable directory 'd', 'rmdir -p d d/e/f' would emit
 # diagnostics but would not fail.  Fixed in 5.1.2.
 
 # Copyright (C) 2004, 2006-2012 Free Software Foundation, Inc.
index 94b6e2ed457cc173aeb0944c945bb55f21a8993d..8c7052facfcb4492b47bec2e9f41c689087dd9c9 100755 (executable)
@@ -23,7 +23,7 @@ mkdir dir || framework_failure_
 
 
 # Prior to coreutils-4.5.2, this would fail with the following:
-# rmdir: `dir': No such file or directory
+# rmdir: 'dir': No such file or directory
 rmdir -p dir/ || fail=1
 
 Exit $fail
index 96a5f8c337ac629e2830352cee30d84d7985eae2..58c80e360c607c5c8adc420e62bc3ed54bc5dfde 100644 (file)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # Run a test script of the coreutils test scripts, picking up the right
 # interpreter (i.e., perl or the shell) and the right flags for it (e.g.,
-# perl `-T' flag for perl scripts that must run in tainted mode).
+# perl '-T' flag for perl scripts that must run in tainted mode).
 #
 # Copyright (C) 2011-2012 Free Software Foundation, Inc.
 #
@@ -31,7 +31,7 @@ me=shell-or-perl
 fatal_ ()
 {
   echo "$me: $*" >&2
-  # Exit with status `99' to inform the testsuite harness that an
+  # Exit with status '99' to inform the testsuite harness that an
   # hard error occurred.
   exit 99
 }
index 194b55943c796277e1562096c291c39bf3338ea1..fbdb533146fdf55d540f1125b89fe0feb84aa208 100755 (executable)
@@ -33,14 +33,14 @@ check_tail_output()
 }
 
 # Wait up to 6.3s for tail to start with diagnostic:
-# tail: cannot open `missing/file' for reading: No such file or directory
+# tail: cannot open 'missing/file' for reading: No such file or directory
 tail_re='cannot open' retry_delay_ check_tail_output .1 7 || fail=1
 
 mkdir missing || fail=1
 (cd missing && echo x > file)
 
 # Wait up to 6.3s for this to appear in the output:
-# "tail: `...' has appeared;  following end of new file"
+# "tail: '...' has appeared;  following end of new file"
 tail_re='has appeared' retry_delay_ check_tail_output .1 7 ||
   { echo "$0: file: unexpected delay?"; cat out; fail=1; }
 
index 7967296a2e992b8a9d86de609eb9b38bf55ca807..53bc00dd3ede7b17f0a583196bdd355ef7461a2a 100755 (executable)
@@ -41,12 +41,12 @@ tail_re='^x$' retry_delay_ check_tail_output .1 7 || fail=1
 mv a b || fail=1
 
 # Wait 6.3s for this diagnostic:
-# tail: `a' has become inaccessible: No such file or directory
+# tail: 'a' has become inaccessible: No such file or directory
 tail_re='inaccessible' retry_delay_ check_tail_output .1 7 || fail=1
 
 echo x > a
 # Wait up to 6.3s for this to appear in the output:
-# "tail: `...' has appeared;  following end of new file"
+# "tail: '...' has appeared;  following end of new file"
 tail_re='has appeared' retry_delay_ check_tail_output .1 7 ||
   { echo "$0: a: unexpected delay?"; cat out; fail=1; }
 
index 9632b104fb8ea6864e39a6b972537a5936561385..c34f90d77939e37afb2ccd438dfa02b6e6340b93 100755 (executable)
@@ -19,7 +19,7 @@
 
 # This test fails with tail from textutils-2.0.
 # It would get something like this:
-#   tail: tail.c:718: recheck: Assertion `valid_file_spec (f)' failed.
+#   tail: tail.c:718: recheck: Assertion 'valid_file_spec (f)' failed.
 #   Aborted
 # due to a race condition in which a dev/inode pair is reused.
 
@@ -39,8 +39,8 @@ tail_pid=$!
 
 echo sleeping for 7 seconds...
 
-# Give the backgrounded `tail' a chance to start before removing foo.
-# Otherwise, without --retry, tail wouldn't try to open `foo' again.
+# Give the backgrounded 'tail' a chance to start before removing foo.
+# Otherwise, without --retry, tail wouldn't try to open 'foo' again.
 sleep 1
 
 rm -f foo
index 25ddb8b2065a23047d04fc4add94f51aaffe0fe3..b8f099d5f1412f7b3c2bc4bc009b0a221ccc937a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
-# This variant of `assert' would get a UMR reliably in 2.0.9.
-# Due to a race condition in the test, the `assert' script would get
+# This variant of 'assert' would get a UMR reliably in 2.0.9.
+# Due to a race condition in the test, the 'assert' script would get
 # the UMR on Solaris only some of the time, and not at all on Linux/GNU.
 
 # Copyright (C) 2000, 2006-2012 Free Software Foundation, Inc.
index 3bd53039eb3d745cd55260001296059c260ca3c6..171dd1bd78135f7dd3d8fc9b761d18a3e85dc65b 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Demonstrate a bug in `tail -cN' when operating on files of size 4G and larger
+# Demonstrate a bug in 'tail -cN' when operating on files of size 4G and larger
 # Fixed in coreutils-4.5.2.
 
 # Copyright (C) 2002-2003, 2006-2012 Free Software Foundation, Inc.
index a615d799de54522a3524d048d660db9ddafbd604..2ab1c011947277589f1bd236849432b4793c1e2a 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ tail
 
 cat <<\EOF > exp || framework_failure_
-tail: cannot open `no-such' for reading: No such file or directory
+tail: cannot open 'no-such' for reading: No such file or directory
 tail: no files remaining
 EOF
 
index ee3a2a5713a2620d88a2bb40ff19d406e51caf01..deec76d1b065c83dc12c48fdc5b144f84d31ae88 100755 (executable)
@@ -41,14 +41,14 @@ tail_re='^x$' retry_delay_ check_tail_output .1 7 || fail=1
 mv 1 f || fail=1
 
 # Wait 6.3s for this diagnostic:
-# tail: `1' has become inaccessible: No such file or directory
+# tail: '1' has become inaccessible: No such file or directory
 tail_re='inaccessible' retry_delay_ check_tail_output .1 7 || fail=1
 
 # Trigger the bug.  Before the fix, this would provoke the abort.
 echo a > 1 || fail=1
 
 # Wait up to 2s for the buggy tail to die,
-# or for the "tail: `1' has appeared;  following end of new file" output
+# or for the "tail: '1' has appeared;  following end of new file" output
 for i in $(seq 10); do
   kill -0 $pid || break
   grep 'has appeared;' out > /dev/null && break
index f4d8e8c2776f8f9ecf8431f596de390fb0c24cef..e3577a85a46c97c9cf959c16c607ee30f977d184 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Prior to textutils-2.0.17, `tail /proc/ksyms' would segfault on Linux.
+# Prior to textutils-2.0.17, 'tail /proc/ksyms' would segfault on Linux.
 
 # Copyright (C) 2001, 2004, 2006-2012 Free Software Foundation, Inc.
 
index f5c2ec5910f350a3ebf28bce34ff2abab6917c4b..29448d986b76635f56af912fe6251c801dd9653b 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Make sure that `tail -n0 -f' and `tail -c0 -f' sleep
+# Make sure that 'tail -n0 -f' and 'tail -c0 -f' sleep
 # rather than doing what amounted to a busy-wait.
 
 # Copyright (C) 2003, 2006-2012 Free Software Foundation, Inc.
index 2b051fc6b990b535b5755c504d8dc7aaa723a51e..24764bd06dcc735ca6f401a9a00975e4f542fc4a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
-# Make sure that `tail -f' returns immediately if a file doesn't exist
-# while `tail -F' waits for it to appear.
+# Make sure that 'tail -f' returns immediately if a file doesn't exist
+# while 'tail -F' waits for it to appear.
 
 # Copyright (C) 2003, 2006-2012 Free Software Foundation, Inc.
 
@@ -36,7 +36,7 @@ for inotify in ---disable-inotify ''; do
   timeout 1 tail -s0.1 -f $inotify here 2>tail.err
   test $? = 124 || fail=1
 
-  # `tail -F' must wait in any case.
+  # 'tail -F' must wait in any case.
 
   timeout 1 tail -s0.1 -F $inotify here 2>>tail.err
   test $? = 124 || fail=1
index 09c96091fc0afe0c918cdb3bf73bd8f1ff3a59da..915a1d05dade68ff9b8da244add954db6dd37650 100755 (executable)
@@ -23,7 +23,7 @@ echo 60.000000000 > exp || framework_failure_
 
 
 # Before coreutils-7.7, this would fail, complaining of
-# an `invalid date format'.  Specifying 60 seconds *is* valid.
+# an 'invalid date format'.  Specifying 60 seconds *is* valid.
 TZ=UTC0 touch -t 197001010000.60 f || fail=1
 
 stat --p='%.9Y\n' f > out || fail=1
index 1431fb52d2d4ff0d402510dff8303f4a50ad5fd6..2d4f4e98e45785b720169ef063e1b8ce46596148 100755 (executable)
@@ -18,7 +18,7 @@
 
 
 # Volker Borchert reported that touch 3.16r (and presumably all before that)
-# fails to work on SunOS 4.1.3 with `most of the recommended patches' when
+# fails to work on SunOS 4.1.3 with 'most of the recommended patches' when
 # the empty file is on an NFS-mounted 4.2 volume.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
index 3aba5f0a01bc731d2fa05de4f64a5a49d88fcf6c..63b8af2492b4f83c3b8e620f2b1acffa25dd45b5 100755 (executable)
@@ -32,14 +32,14 @@ skip_if_root_
 
 
 # Before fileutils-4.1, we'd get the following misleading
-# diagnostic instead of `...: Permission denied'.
-# touch: creating `/': Is a directory
+# diagnostic instead of '...: Permission denied'.
+# touch: creating '/': Is a directory
 touch / > out 2>&1 && fail=1
 
-# On SunOS4, EPERM is `Not owner'.
-# On some *BSD systems it's `Operation not permitted'.
+# On SunOS4, EPERM is 'Not owner'.
+# On some *BSD systems it's 'Operation not permitted'.
 # On a system where root file system is mounted read-only
-# it's `Read-only file system'.
+# it's 'Read-only file system'.
 for msg in 'Not owner' 'Operation not permitted' 'Permission denied' \
            'Read-only file system'; do
   cat > exp <<EOF