mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
use better sed expressions
This commit is contained in:
1 parent
c2c397d96f
commit
82fba3787f
1 file changed
+3
-3
+3
-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
|
||||
Reference in new issue
Block a user