]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
use better sed expressions
authorJim Meyering <jim@meyering.net>
Wed, 5 Mar 2003 07:38:10 +0000 (07:38 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 5 Mar 2003 07:38:10 +0000 (07:38 +0000)
tests/mv/hard-3

index 150c9870354e35ab90fc3889c180bfd562b4921e..fc8a6908a47f2753ade086f9bf1424bb22005efc 100755 (executable)
@@ -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