diff options
author | Jim Meyering <jim@meyering.net> | 2003-12-08 09:03:51 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-12-08 09:03:51 +0000 |
commit | 710dca5363eb48cd74ed9e276f77f611333a60f2 (patch) | |
tree | e69038339d69aba838df1993cb6d96974c4d8243 | |
parent | a6616a3786e3751c34f77100530796b141e84cb8 (diff) | |
download | coreutils-710dca5363eb48cd74ed9e276f77f611333a60f2.tar.xz |
Don't assume that 'ls' output is fixed-width.
-rwxr-xr-x | tests/mv/part-symlink | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink index ccceee511..e009b8449 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. |