1#!/bin/sh
2
3# Test Shell support: backslashed double-quotes inside single-quotes.
4
5tmpfiles=""
6trap 'rm -fr $tmpfiles' 1 2 3 15
7
8tmpfiles="$tmpfiles xg-sh-3.sh"
9cat <<\EOF > xg-sh-3.sh
10echo `gettext 'abc\"def'`
11EOF
12
13tmpfiles="$tmpfiles xg-sh-3.po"
14: ${XGETTEXT=xgettext}
15${XGETTEXT} --omit-header --no-location -d xg-sh-3 xg-sh-3.sh
16test $? = 0 || { rm -fr $tmpfiles; exit 1; }
17
18tmpfiles="$tmpfiles xg-sh-3.ok"
19cat <<\EOF > xg-sh-3.ok
20msgid "abc\\\"def"
21msgstr ""
22EOF
23
24: ${DIFF=diff}
25${DIFF} xg-sh-3.ok xg-sh-3.po
26result=$?
27
28rm -fr $tmpfiles
29
30exit $result
31