LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] echo $"Why does RedHat do this"?" in init scripts

[ILUG] echo $"Why does RedHat do this"?" in init scripts

Brian Brazil bbrazil at netsoc.tcd.ie
Sun Apr 30 15:38:07 IST 2006


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.

Brian

-- 
Website: http://www.netsoc.tcd.ie/~bbrazil



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell