summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-01-15 15:51:09 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2023-01-15 16:38:56 -0800
commitb63a9923464602ad73e205e3fb0e10dce8f4ac30 (patch)
tree1bdb7ce7a974234e040244b88618a2e4c4b254d1
parentd59fbb41460d7e8e7a84e0047ac57666c9f7ac43 (diff)
downloadgrep-b63a9923464602ad73e205e3fb0e10dce8f4ac30.tar.gz
tests: fix test -eq problem
Do not use ‘test "" -eq 1’ when get-mb-cur-max fails, as Bash complains about this. Problem found on AIX.
-rwxr-xr-xtests/case-fold-titlecase2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/case-fold-titlecase b/tests/case-fold-titlecase
index 41e08310..61c7ea04 100755
--- a/tests/case-fold-titlecase
+++ b/tests/case-fold-titlecase
@@ -168,7 +168,7 @@ do
done
# Try a unibyte test with ISO 8859-7, if available.
-if test "$(get-mb-cur-max el_GR.iso88597)" -eq 1; then
+if test "$(get-mb-cur-max el_GR.iso88597)" = 1; then
LC_ALL=el_GR.iso88597
export LC_ALL