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.

Andreas.

-- 
Andreas Schwab, sch...@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."

Reply via email to