From: Pádraig Brady Date: Sat, 6 Jun 2026 10:46:43 +0000 (+0100) Subject: maint: tests: remove extraneous "&& :" X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=bbbd14c6d8e17c6d67787fd8995457d052e2abdc;p=thirdparty%2Fcoreutils.git maint: tests: remove extraneous "&& :" * tests/cp/symlink-slash.sh: && : is always redundant. * tests/ls/symlink-slash.sh: Likewise. --- diff --git a/tests/cp/symlink-slash.sh b/tests/cp/symlink-slash.sh index 623efa3ce0..13c0f0b329 100755 --- a/tests/cp/symlink-slash.sh +++ b/tests/cp/symlink-slash.sh @@ -31,6 +31,6 @@ set -- $(ls -l s) # use the new --strip-trailing-slash option) causing cp to reproduce the # symlink. Now, the trailing slash is interpreted by the stat library # call and so cp ends up dereferencing the symlink and copying the directory. -test "$*" = 'total 0' && : || fail=1 +test "$*" = 'total 0' || fail=1 Exit $fail diff --git a/tests/ls/symlink-slash.sh b/tests/ls/symlink-slash.sh index b02b4d889f..8c2ebba2a7 100755 --- a/tests/ls/symlink-slash.sh +++ b/tests/ls/symlink-slash.sh @@ -26,11 +26,11 @@ ln -s dir symlink || framework_failure_ set -- $(ls -l symlink/) # Prior to fileutils-4.0k, the following would have output '... symlink -> dir'. -test "$*" = 'total 0' && : || fail=1 +test "$*" = 'total 0' || fail=1 # A path ending in '/.' refers to the directory itself, so it must be # dereferenced and its (empty) contents listed, not the symlink shown. set -- $(ls -l symlink/.) -test "$*" = 'total 0' && : || fail=1 +test "$*" = 'total 0' || fail=1 Exit $fail