summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msggrep-10
blob: 1f50cf8c46475e1e1908a44b6e4c3cd4f7e37888 (plain)
1
2
3
4
5
6
7
8
9
10
11
#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src

# Verify that $ as end-of-line anchor does not cause a crash.
# <https://bugzilla.redhat.com/show_bug.cgi?id=483181>
# <https://savannah.gnu.org/bugs/?25437>

: ${MSGGREP=msggrep}
echo a=b | LC_MESSAGES=C LC_ALL= ${MSGGREP} -P -K -e '^a$' > /dev/null || Exit 1

exit $result