help-bash
[Top][All Lists]
Advanced

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

Re: How to use $"msgid"?


From: Chet Ramey
Subject: Re: How to use $"msgid"?
Date: Mon, 29 Mar 2021 15:30:37 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 3/23/21 11:17 PM, Jesse Hathaway wrote:

i.e. bash substitutes the translation then performs double quoted
string expansions, so if the translator has injected bash code, such
as a command substitution into the translated message, it will be
executed.

$"..." strings are double-quoted strings that happen to be subject to
translation, just like $'...' strings are single-quoted strings that
have certain escape sequences expanded.

The question is whether or not you trust your translator. This is for
a script you wrote, with strings you created.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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