summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-05 07:38:10 +0000
committerJim Meyering <jim@meyering.net>2003-03-05 07:38:10 +0000
commit82fba3787f4ef85b71a17950290c722d9723f61a (patch)
tree16f863694760269aec2fe481fe99ca10cbc28c44 /tests
parentc2c397d96fce1e6f70dec779a7b1c96ec1b96233 (diff)
downloadcoreutils-82fba3787f4ef85b71a17950290c722d9723f61a.tar.xz
use better sed expressions
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mv/hard-36
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mv/hard-3 b/tests/mv/hard-3
index 150c98703..fc8a6908a 100755
--- a/tests/mv/hard-3
+++ b/tests/mv/hard-3
@@ -59,12 +59,12 @@ test -f x/b || fail=1
test -f c || fail=1
# The i-node numbers of a and c must be the same.
-ia=`ls -i a|sed 's/ a//'`
-ic=`ls -i c|sed 's/ c//'`
+ia=`ls -i a|sed 's/ a$//'`
+ic=`ls -i c|sed 's/ c$//'`
test $ia = $ic || fail=1
# The i-node number of x/b must be different.
-ib=`ls -i x/b|sed 's/ .*//'`
+ib=`ls -i x/b|sed 's/ x.b$//'`
test $ia = $ib && fail=1
(exit $fail); exit $fail