[Geany-Devel] Escaping replacement for placeholder in build commands
Colomban Wendling
lists.ban at herbesfolles.org
Sun Dec 16 14:26:59 UTC 2012
Le 16/12/2012 01:47, Colomban Wendling a écrit :
> [...]
>
> OK, to chose appropriate quoting you may argue one needs to understand
> sub-command syntax. Expanding the command:
>
> cmd "$(cmd2 %f)"
>
> to
>
> cmd "$(cmd2 "'xxx.c'")"
>
> is incorrect -- and that's what my patch would do, because it doesn't
> understand sub-shells. We may or may not want to make sure to support
> sub-shells -- that's not that hard, but may also not be that useful, but
> whatever.
Attached an updated version of my patch to deal with `` and $()
sub-shell syntax.
Cheers,
Colomban
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Escape-replacements-in-build-commands-2.patch
Type: text/x-patch
Size: 5304 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20121216/a6665ec3/attachment.bin>
More information about the Devel
mailing list