On 30 Apr 2006, at 15:38, Brian Brazil wrote:
> On Sun, Apr 30, 2006 at 03:19:11PM +0100, Niall O Broin wrote:
>> The subject nearly says it all - why do RedHat init scripts use
>>>> echo $"Here is a message for stdout"
>>>> instead of simply
>>>> echo "Here is a message for stdout"
>>http://tiswww.tis.case.edu/~chet/bash/bashref.html> Bash supports the $"..." quoting syntax to do locale-specific
> translation of the characters between the double quotes. The `-D',
> `--dump-strings', and `--dump-po-strings' invocation options list the
> translatable strings found in a script (see section 3.1.2.5
> Locale-Specific Translation).
>> I18n would appear to be the answer.
Thanks Brian - I did wonder if it were I18n related, but 'man bash'
searched for $" only produced this:
extquote
If set, $'string' and $"string" quoting is performed within $
{parameter}
expansions enclosed in double quotes. This option is
enabled by default.
I hate incomplete man pages.
Niall
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!