From 710dca5363eb48cd74ed9e276f77f611333a60f2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 8 Dec 2003 09:03:51 +0000 Subject: [PATCH] Don't assume that 'ls' output is fixed-width. --- tests/mv/part-symlink | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink index ccceee511e..e009b84492 100755 --- a/tests/mv/part-symlink +++ b/tests/mv/part-symlink @@ -108,13 +108,13 @@ for copy in cp mv; do -e '/^total /d' \ -e s,$other_partition_tmpdir/,, \ -e s,$pwd_tmp/,, \ - -e 's/^......................................//'`" + -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'`" ls2="`cd $other_partition_tmpdir && ls -gG --ignore=.err . \ | sed \ -e '/^total /d' \ -e s,$other_partition_tmpdir/,, \ -e s,$pwd_tmp/,, \ - -e 's/^......................................//'`" + -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'`" echo "($ls) ($ls2)" # If the command failed, then it must not have changed the files. -- 2.47.3