bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coreutils 6.0: fix portability problem in acl test


From: Andreas Schwab
Subject: coreutils 6.0: fix portability problem in acl test
Date: Wed, 16 Aug 2006 11:56:58 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

The == operator is not a portable test operator, it should be = instead.

Andreas.

2006-08-16  Andreas Schwab  <address@hidden>

        * tests/cp/acl: Don't use non-portable == operator for test.

--- tests/cp/acl.~1.5.~ 2005-11-17 22:17:35.000000000 +0100
+++ tests/cp/acl        2006-08-16 11:50:53.000000000 +0200
@@ -34,7 +34,7 @@ acl1=`cd a && getfacl file | grep -v ':b
   || framework_failure=1
 cp a/file b/ || fail=1
 acl2=`cd b && getfacl file` || framework_failure=1
-test "$acl1" == "$acl2" || fail=1
+test "$acl1" = "$acl2" || fail=1
 rm a/file || framework_failure=1
 
 # copy a file, preserving permissions
@@ -43,7 +43,7 @@ setfacl -m user:bin:rw a/file || framewo
 acl1=`cd a && getfacl file` || framework_failure=1
 cp -p a/file b/ || fail=1
 acl2=`cd b && getfacl file` || framework_failure=1
-test "$acl1" == "$acl2" || fail=1
+test "$acl1" = "$acl2" || fail=1
 
 if test $framework_failure = 1; then
   echo 'failure in testing framework'

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]