From: Jim Meyering Date: Wed, 5 Mar 2003 07:38:10 +0000 (+0000) Subject: use better sed expressions X-Git-Tag: v4.5.9~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82fba3787f4ef85b71a17950290c722d9723f61a;p=thirdparty%2Fcoreutils.git use better sed expressions --- diff --git a/tests/mv/hard-3 b/tests/mv/hard-3 index 150c987035..fc8a6908a4 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