[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: UTF-8 format not supporting by Bourne again shell
From: |
Greg Wooledge |
Subject: |
Re: UTF-8 format not supporting by Bourne again shell |
Date: |
Wed, 17 Aug 2011 08:50:26 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Wed, Aug 17, 2011 at 10:54:02AM +0000, Kiran Kotla wrote:
> prog="snmpd"
> start() {
> echo -n $"Starting $prog: "
> }
> value in the "$prog" displaying properly,bur the "Starting" message is
> scrambled.
> "Bourne-Again shell" format.
The $"..." quoting is for localization (natural language translation)
of strings. You need to set up a whole bunch of infrastructure to
support localization in your scripts. See
http://mywiki.wooledge.org/BashFAQ/098 for help.
If you did not intend to begin the process of internationalization of
your scripts, then perhaps you used the $"..." syntax in error. If
you simply wanted to display the message in English, you should just
use "..." instead.