On May 16, 2011, at 3:26 PM, Andreas Schwab wrote:

> Tristan Gingold <ging...@adacore.com> writes:
> 
>> 2011-05-16  Tristan Gingold  <ging...@adacore.com>
>> 
>>      * check.tpl: Shell-quote testing file.
>> 
>> diff --git a/fixincludes/check.tpl b/fixincludes/check.tpl
>> index b239d8b..0f3937a 100644
>> --- a/fixincludes/check.tpl
>> +++ b/fixincludes/check.tpl
>> @@ -87,7 +87,7 @@ FOR fix  =][=
>>   ELSE   =]
>> cat >> [=
>>     IF (exist? "files") =][=
>> -      files[0] =][=
>> +      (string-substitute (get "files[0]") "$" "\\$") =][=
> 
> If you want to reliably shell-quote the string you should use
> raw-shell-str.

Works for me too.  Thanks.

Tristan.

Reply via email to