Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gettext-tools / tests / msggrep-10
1 #! /bin/sh
2
3 # Verify that $ as end-of-line anchor does not cause a crash.
4 # <https://bugzilla.redhat.com/show_bug.cgi?id=483181>
5 # <https://savannah.gnu.org/bugs/?25437>
6
7 tmpfiles=""
8 trap 'rm -fr $tmpfiles' 1 2 3 15
9
10 : ${MSGGREP=msggrep}
11 echo a=b | LC_MESSAGES=C LC_ALL= ${MSGGREP} -P -K -e '^a$' > /dev/null
12 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
13
14 rm -fr $tmpfiles
15
16 exit $result