tests: work around dash quoting issue in case statements.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 14 Nov 2010 17:22:50 +0000 (18:22 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 14 Nov 2010 17:22:50 +0000 (18:22 +0100)
* tests/color.test, tests/color2.test: Quote variable in case
pattern, to avoid skipping tests with dash 0.5.5.1.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/color.test
tests/color2.test

index 7595f3ba1bfaf832e1407d363208eff6ef7bbc1a..77e12cac710925fed1987da5c3b1c5582be1e145 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       tests: work around dash quoting issue in case statements.
+       * tests/color.test, tests/color2.test: Quote variable in case
+       pattern, to avoid skipping tests with dash 0.5.5.1.
+
 2010-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Rebuild menus in the manual.
index 9d867856241674359e8c6d932fabb147e43cf5cb..c1032fdc7b036a4113c478d5a6ba624387c0f83b 100755 (executable)
@@ -34,7 +34,7 @@ std='\e[m'
 # BSD 'grep' works from a pipe, but not a seekable file.
 # GNU or BSD 'grep -a' works on files, but is not portable.
 case `echo "$std" | grep .` in
-  $std) ;;
+  "$std") ;;
   *) echo "$me: grep can't parse nonprinting characters" >&2; Exit 77;;
 esac
 
index eedd37d2b41524b7fe033b4830ad9b71cd11531e..306aa040cb5a6cbb7e0a297a90d95f95877766ca 100755 (executable)
@@ -34,7 +34,7 @@ std='\e[m'
 # BSD 'grep' works from a pipe, but not a seekable file.
 # GNU or BSD 'grep -a' works on files, but is not portable.
 case `echo "$std" | grep .` in
-  $std) ;;
+  "$std") ;;
   *) echo "$me: grep can't parse nonprinting characters" >&2; Exit 77;;
 esac