From 2166e59824d6514203c03c68a9cd5250ece2a2b0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 29 Oct 2003 11:49:28 +0000 Subject: Hide the warning. --- gettext-tools/tests/lang-bash | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gettext-tools/tests/lang-bash') diff --git a/gettext-tools/tests/lang-bash b/gettext-tools/tests/lang-bash index b2899dc..030e77c 100755 --- a/gettext-tools/tests/lang-bash +++ b/gettext-tools/tests/lang-bash @@ -25,9 +25,14 @@ $echo $"'Your command, please?', asked the waiter." $echo "`eval_ngettext "a piece of cake" "\\$n pieces of cake" $n`" EOF -tmpfiles="$tmpfiles prog.pot" +tmpfiles="$tmpfiles prog.pot prog.err" : ${XGETTEXT=xgettext} -${XGETTEXT} -o prog.pot --omit-header --no-location prog.sh +LC_MESSAGES=C LC_ALL= \ +${XGETTEXT} -o prog.pot --omit-header --no-location prog.sh \ + >prog.err 2>&1 +result=$? +cat prog.err | grep -v 'warning: the syntax \$"\.\.\." is deprecated due to security reasons' +test $result = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" cat <<\EOF > prog.ok -- cgit v1.1