~ubuntu-branches/ubuntu/utopic/gettext/utopic

« back to all changes in this revision

Viewing changes to gettext-tools/tests/msggrep-10

  • Committer: Colin Watson
  • Date: 2010-08-01 21:36:08 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: cjwatson@canonical.com-20100801213608-yy7vkm8lpatep3ci
merge from Debian 0.18.1.1-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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