summaryrefslogtreecommitdiff
path: root/tests/foad1
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2010-03-29 11:26:08 +0200
committerPaolo Bonzini <bonzini@gnu.org>2010-03-29 11:31:15 +0200
commit37ad224185f1046c35e76b95dab43d7c65cd2a22 (patch)
tree4e861ca81bd06375e3512a0bed9656271763c9f0 /tests/foad1
parent0f7ab96dc723ccc497d652a72798661adf9504c6 (diff)
downloadgrep-37ad224185f1046c35e76b95dab43d7c65cd2a22.tar.gz
tests: use $(...) consistently
* tests/backref.sh: Use `...' instead of ``...'' in comments. * tests/bre.awk: Use $(...) instead of `...`. * tests/ere.awk: Use $(...) instead of `...`. * tests/euc-mb: Use $(...) instead of `...`. * tests/fmbtest: Use $(...) instead of `...`. * tests/foad1: Use $(...) instead of `...`. * tests/pcre-z: Use $(...) instead of `...`. Quote output of grep. * tests/spencer1-locale.awk: Use $(...) instead of `...`. * tests/spencer1.awk: Use $(...) instead of `...`. * tests/yesno.sh: Use $(...) instead of `...`.
Diffstat (limited to 'tests/foad1')
-rwxr-xr-xtests/foad12
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/foad1 b/tests/foad1
index 150c2b0d..9492fadb 100755
--- a/tests/foad1
+++ b/tests/foad1
@@ -23,7 +23,7 @@ grep_test ()
INPUT="$1"
EXPECT="$2"
shift 2
- OUTPUT=`printf %s "$INPUT" | tr "/" "\n" | grep "$@" | tr "\n" "/"`
+ OUTPUT=$(printf %s "$INPUT" | tr "/" "\n" | grep "$@" | tr "\n" "/")
if test "$OUTPUT" != "$EXPECT" || test "$VERBOSE" = "yes"; then
echo "Testing: grep $@"
test "$LC_ALL" != C && test "$LC_ALL" != "" && echo " LC_ALL: \"$LC_ALL\""