diff options
author | Jim Meyering <meyering@redhat.com> | 2012-01-07 17:47:58 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-01-09 21:50:08 +0100 |
commit | dd0e4c5621ca2fa9255aef4eee0e7cf41cd335d2 (patch) | |
tree | 5194ff517669cfb08a3ba329658b45870ab063bd /tests/mv/sticky-to-xpart | |
parent | 50610144b02763f5dd5f6198ceceb88c27c393aa (diff) | |
download | coreutils-dd0e4c5621ca2fa9255aef4eee0e7cf41cd335d2.tar.xz |
tests: change `...' to '...' on lines not matching /[=\$]/
Exempt lines with '$' or '=', since those are prone to improper
conversion. Run this:
git grep -l "\`[^']*'" tests \
|xargs perl -pi -e '/[=\$]/ and next;s/\`([^'\''"]*?'\'')/'\''$1/g'
Diffstat (limited to 'tests/mv/sticky-to-xpart')
-rwxr-xr-x | tests/mv/sticky-to-xpart | 8 |
1 files changed, 4 insertions, 4 deletions
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 |