#! /bin/sh # Verify that $ as end-of-line anchor does not cause a crash. # # tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 : ${MSGGREP=msggrep} echo a=b | LC_MESSAGES=C LC_ALL= ${MSGGREP} -P -K -e '^a$' > /dev/null test $? = 0 || { rm -fr $tmpfiles; exit 1; } rm -fr $tmpfiles exit $result