From: Ralf Wildenhues Date: Sun, 14 Nov 2010 17:22:50 +0000 (+0100) Subject: tests: work around dash quoting issue in case statements. X-Git-Tag: v1.11.1b~43^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4d75f3e54949a6862e593d56a5de74ed1510801;p=thirdparty%2Fautomake.git 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. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 7595f3ba1..77e12cac7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-11-14 Ralf Wildenhues + + 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 Rebuild menus in the manual. diff --git a/tests/color.test b/tests/color.test index 9d8678562..c1032fdc7 100755 --- a/tests/color.test +++ b/tests/color.test @@ -34,7 +34,7 @@ std='' # 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 diff --git a/tests/color2.test b/tests/color2.test index eedd37d2b..306aa040c 100755 --- a/tests/color2.test +++ b/tests/color2.test @@ -34,7 +34,7 @@ std='' # 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