Fix the parsing of the --version capabilities.
authorWayne Davison <wayne@opencoder.net>
Tue, 26 May 2020 06:42:33 +0000 (23:42 -0700)
committerWayne Davison <wayne@opencoder.net>
Tue, 26 May 2020 06:42:51 +0000 (23:42 -0700)
testsuite/acls.test
testsuite/chown.test
testsuite/default-acls.test
testsuite/devices.test
testsuite/itemize.test
testsuite/xattrs.test

index 40490a675ba35d65a4d1b07c7225d8e49ee4cb37..5728cd577e3db1a46fdace5d8e34452bc3d02297 100644 (file)
@@ -7,7 +7,7 @@
 
 . $suitedir/rsync.fns
 
-$RSYNC --version | grep ", ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"
+$RSYNC --version | grep "[, ] ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"
 
 makepath "$fromdir/foo"
 echo something >"$fromdir/file1"
index 30a3a94d46bba8dd5a029ef6eaf903d7d7c84145..aa4958d8de2de9f84e31a771fbfd392065ab2575 100644 (file)
@@ -15,7 +15,7 @@
 
 case $0 in
 *fake*)
-    $RSYNC --version | grep ", xattrs" >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"
+    $RSYNC --version | grep "[, ] xattrs" >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"
     RSYNC="$RSYNC --fake-super"
     TLS_ARGS="$TLS_ARGS --fake-super"
     case "$HOST_OS" in
index eb41a6ff1839aedfe4db9e24a79d5ec01c1cad75..17893f93ea470897af02d0bf0f033bc2b44512b2 100644 (file)
@@ -7,7 +7,7 @@
 
 . $suitedir/rsync.fns
 
-$RSYNC --version | grep ", ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"
+$RSYNC --version | grep "[, ] ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"
 
 case "$setfacl_nodef" in
 true) test_skipped "I don't know how to use your setfacl command" ;;
index a92451382f50c6a369964dbe8d216318523b70d8..0af0428bd0484aa8290628e9f043938227be3d64 100644 (file)
@@ -16,7 +16,7 @@ outfile="$scratchdir/rsync.out"
 
 case $0 in
 *fake*)
-    $RSYNC --version | grep ", xattrs" >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"
+    $RSYNC --version | grep "[, ] xattrs" >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"
     RSYNC="$RSYNC --fake-super"
     TLS_ARGS="$TLS_ARGS --fake-super"
     case "$HOST_OS" in
index 78637ca4607ddeb956c5b213eaab39652a5fafb3..3a5af1c336efc93d88cb77cd9032ff8d45af4f07 100644 (file)
@@ -40,7 +40,7 @@ case "$RSYNC" in
     T=.T
     ;;
 *)
-    if $RSYNC --version | grep ", symtimes" >/dev/null; then
+    if $RSYNC --version | grep "[, ] symtimes" >/dev/null; then
        T=.t
     else
        T=.T
index 86165e0c238ba073380c4a5438cd09c406f889e1..5931ffcda6b9281f236d0b599c57a3cdd1569bea 100644 (file)
@@ -8,7 +8,7 @@
 . $suitedir/rsync.fns
 lnkdir="$tmpdir/lnk"
 
-$RSYNC --version | grep ", xattrs" >/dev/null || test_skipped "Rsync is configured without xattr support"
+$RSYNC --version | grep "[, ] xattrs" >/dev/null || test_skipped "Rsync is configured without xattr support"
 
 case "$HOST_OS" in
 darwin*)