On 22/04/2013 14:55, Андрей Черепанов wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
My shell script
#!/bin/sh
fatal "first"
cat <<EOF
'
EOF
fatal "second"
Try to extract strings from script:
xgettext -L shell -kfatal --omit-header -o - ll
#: ll:2
msgid "first"
msgstr ""
Well, parser processes all contents from apostroph (') to the end of
file as string.
This situation is happened if script have odd numbers of string
delimiters in here-doc in shell.
Possible solution: ignore here-doc block in shell language.
I disagree with the proposed solution.
If the here document feeds another shell script to be written
by the first one, for instance, it would prevent the second
script's internationalization
Same if the here document feeds a 'dialog' command.
Didier