2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test of Shell support: bash $(...) syntax.
6 cat <<\EOF > xg-sh-5.sh
7 echo $(gettext 'Simple string')
8 echo "$(gettext 'Simple string inside double-quotes')"
9 echo $(gettext 'Simple decorated string: "x" \"y\"')
10 echo "$(gettext 'Simple decorated string: "x" \"y\" inside double-quotes')"
11 echo $(gettext "Simple dstring")
12 echo "$(gettext "Simple dstring inside double-quotes")"
13 echo $(gettext "Simple decorated dstring: \"x\" \\\"y\\\"")
14 echo "$(gettext "Simple decorated dstring: \"x\" \\\"y\\\" inside double-quotes")"
17 : ${XGETTEXT=xgettext}
18 ${XGETTEXT} --omit-header --no-location -d xg-sh-5.tmp xg-sh-5.sh || exit 1
19 LC_ALL=C tr -d '\r' < xg-sh-5.tmp.po > xg-sh-5.po || exit 1
21 cat <<\EOF > xg-sh-5.ok
25 msgid "Simple string inside double-quotes"
28 msgid "Simple decorated string: \"x\" \\\"y\\\""
31 msgid "Simple decorated string: \"x\" \\\"y\\\" inside double-quotes"
34 msgid "Simple dstring"
37 msgid "Simple dstring inside double-quotes"
40 msgid "Simple decorated dstring: \"x\" \\\"y\\\""
43 msgid "Simple decorated dstring: \"x\" \\\"y\\\" inside double-quotes"
48 ${DIFF} xg-sh-5.ok xg-sh-5.po