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 7595f3b..77e12ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
        * doc/automake.texi: Rebuild menus (using ^C ^U ^A in emacs).
        Thanks to Ian Lance Taylor for the suggestion.
index 9d86785..c1032fd 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 eedd37d..306aa04 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