|
From: | Андрей Черепанов |
Subject: | [bug-gettext] xgettext cannot extract strings after ' in here-doc in shell script |
Date: | Mon, 22 Apr 2013 16:55:47 +0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130416 Thunderbird/17.0.5 |
-----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. - -- Андрей Черепанов ALT Linux address@hidden -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) iEYEARECAAYFAlF1M1IACgkQSGPA9Knr8TGFcgCaA7r1HQMC6Wi1m9exjX2Tj8tb +gwAoKpSemaaqsAEHrHrVjZlX3pf1XXf =DZVc -----END PGP SIGNATURE-----
[Prev in Thread] | Current Thread | [Next in Thread] |