]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: tests: remove extraneous "&& :"
authorPádraig Brady <P@draigBrady.com>
Sat, 6 Jun 2026 10:46:43 +0000 (11:46 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 6 Jun 2026 10:46:43 +0000 (11:46 +0100)
* tests/cp/symlink-slash.sh: && : is always redundant.
* tests/ls/symlink-slash.sh: Likewise.

tests/cp/symlink-slash.sh
tests/ls/symlink-slash.sh

index 623efa3ce09f546c5cd87f5e27a42f1d0756f17f..13c0f0b3297924a54b4d4fda7d45084a44ddc3fa 100755 (executable)
@@ -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
index b02b4d889f88b0b9d56d9168002db6f0f1a2f12f..8c2ebba2a702fa5a20fc960040f84edbf3c4544a 100755 (executable)
@@ -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