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.

Reply via email to