summaryrefslogtreecommitdiff
path: root/tests/mv
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mv')
-rwxr-xr-xtests/mv/backup-dir4
-rwxr-xr-xtests/mv/backup-is-src2
-rwxr-xr-xtests/mv/diag6
-rwxr-xr-xtests/mv/dir2dir2
-rwxr-xr-xtests/mv/dup-source2
-rwxr-xr-xtests/mv/hard-34
-rwxr-xr-xtests/mv/hard-verbose2
-rwxr-xr-xtests/mv/i-14
-rwxr-xr-xtests/mv/i-34
-rwxr-xr-xtests/mv/i-46
-rwxr-xr-xtests/mv/i-52
-rwxr-xr-xtests/mv/into-self2
-rwxr-xr-xtests/mv/into-self-22
-rwxr-xr-xtests/mv/into-self-32
-rwxr-xr-xtests/mv/into-self-44
-rwxr-xr-xtests/mv/part-fail6
-rwxr-xr-xtests/mv/part-symlink40
-rwxr-xr-xtests/mv/perm-12
-rwxr-xr-xtests/mv/sticky-to-xpart8
-rw-r--r--tests/mv/vfat6
20 files changed, 55 insertions, 55 deletions
diff --git a/tests/mv/backup-dir b/tests/mv/backup-dir
index f28e5b4c1..40f2c756a 100755
--- a/tests/mv/backup-dir
+++ b/tests/mv/backup-dir
@@ -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
diff --git a/tests/mv/backup-is-src b/tests/mv/backup-is-src
index 5fc2ecf52..ce51001a5 100755
--- a/tests/mv/backup-is-src
+++ b/tests/mv/backup-is-src
@@ -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
diff --git a/tests/mv/diag b/tests/mv/diag
index c8ba7f3e7..7fbe46bd6 100755
--- a/tests/mv/diag
+++ b/tests/mv/diag
@@ -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
diff --git a/tests/mv/dir2dir b/tests/mv/dir2dir
index 133be8328..c170de20a 100755
--- a/tests/mv/dir2dir
+++ b/tests/mv/dir2dir
@@ -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
diff --git a/tests/mv/dup-source b/tests/mv/dup-source
index 7a34472d8..0b102b9bc 100755
--- a/tests/mv/dup-source
+++ b/tests/mv/dup-source
@@ -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
diff --git a/tests/mv/hard-3 b/tests/mv/hard-3
index 8f51606e2..9a7a2a376 100755
--- a/tests/mv/hard-3
+++ b/tests/mv/hard-3
@@ -22,11 +22,11 @@
# 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.
diff --git a/tests/mv/hard-verbose b/tests/mv/hard-verbose
index f6c63852e..41c4187ea 100755
--- a/tests/mv/hard-verbose
+++ b/tests/mv/hard-verbose
@@ -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
diff --git a/tests/mv/i-1 b/tests/mv/i-1
index b2eb59c22..20b6ad7b9 100755
--- a/tests/mv/i-1
+++ b/tests/mv/i-1
@@ -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'? "},
diff --git a/tests/mv/i-3 b/tests/mv/i-3
index 1851d42d8..050377d35 100755
--- a/tests/mv/i-3
+++ b/tests/mv/i-3
@@ -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.
diff --git a/tests/mv/i-4 b/tests/mv/i-4
index b2222c778..5a95e9963 100755
--- a/tests/mv/i-4
+++ b/tests/mv/i-4
@@ -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
diff --git a/tests/mv/i-5 b/tests/mv/i-5
index 374c6beda..76cacabe3 100755
--- a/tests/mv/i-5
+++ b/tests/mv/i-5
@@ -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.
diff --git a/tests/mv/into-self b/tests/mv/into-self
index 1405b7fb6..87c2d8e40 100755
--- a/tests/mv/into-self
+++ b/tests/mv/into-self
@@ -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
diff --git a/tests/mv/into-self-2 b/tests/mv/into-self-2
index ddbf2ec53..d5d921857 100755
--- a/tests/mv/into-self-2
+++ b/tests/mv/into-self-2
@@ -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
#'
diff --git a/tests/mv/into-self-3 b/tests/mv/into-self-3
index 1042d1364..ec7d02cc7 100755
--- a/tests/mv/into-self-3
+++ b/tests/mv/into-self-3
@@ -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
diff --git a/tests/mv/into-self-4 b/tests/mv/into-self-4
index 717e12ea0..8df87a2cc 100755
--- a/tests/mv/into-self-4
+++ b/tests/mv/into-self-4
@@ -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
diff --git a/tests/mv/part-fail b/tests/mv/part-fail
index ed74e02b5..f5d2bb3ee 100755
--- a/tests/mv/part-fail
+++ b/tests/mv/part-fail
@@ -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
diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink
index bb0ccaaad..82a82c674 100755
--- a/tests/mv/part-symlink
+++ b/tests/mv/part-symlink
@@ -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~)
diff --git a/tests/mv/perm-1 b/tests/mv/perm-1
index 9bdc64e9a..b1c9842ea 100755
--- a/tests/mv/perm-1
+++ b/tests/mv/perm-1
@@ -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
diff --git a/tests/mv/sticky-to-xpart b/tests/mv/sticky-to-xpart
index 348a31ad3..954cb8f0e 100755
--- a/tests/mv/sticky-to-xpart
+++ b/tests/mv/sticky-to-xpart
@@ -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
diff --git a/tests/mv/vfat b/tests/mv/vfat
index 8ed334221..78b1ccc0a 100644
--- a/tests/mv/vfat
+++ b/tests/mv/vfat
@@ -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 \