[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How is $"string" translated?

From: Davide Brini
Subject: Re: How is $"string" translated?
Date: Mon, 30 Aug 2010 12:13:40 +0100

On Mon, 30 Aug 2010 18:35:46 +0800
"Clark J. Wang" <address@hidden> wrote:

> The Bash manual says:
> "A double-quoted string preceded by a dollar sign ($) will cause the
> string to be translated according to the current locale.  If the current
> locale is C or  POSIX,  the dollar sign is ignored.  If the string is
> translated and replaced, the replacement is double-quoted."
> Anyone can give an example to show how the $"string" is translated?

You can find out what strings are available on your system for translation
by using the -D option:

-D        A list of all double-quoted strings preceded by $ is printed on
          the standard output. These are the strings that are subject to
          language translation when the current locale is not C or POSIX.
          This implies the -n option; no commands will be executed.

(On my system and some other I could test, that prints nothing).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]