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