Re: [PATCH] send-email: improve recipients_cmd()
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 29, 2013, 05:32 UTC
- Message-ID
- <CAMP44s3QkiQhYr7pKHgKFoXH5m9_ZHLHmwC4c9WC2OGjv7LHdg@mail.gmail.com>
- In-Reply-To
- <7vd2tdoqna.fsf@alter.siamese.dyndns.org>
On Mon, Apr 29, 2013 at 12:24 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 19 quoted lines
> Felipe Contreras <felipe.contreras@gmail.com> writes: > >>> open $fh, "-|", qw(sh -c), $cmd, @args >> >> That doesn't seem to work for me. > > My fault. It needs to form a command line like this: > > sh -c 'cccmd --frotz --nitfol "$@"' - a r g s > > [jc: goes and tries > $ sh -c 'echo X Y "$@"' - a r g s > X Y a r g s > ] > > so if we want to get rid of \Q\E, it would be: > > open $fh, '-|', qw(sh -c), "$cmd " . '"$@"', '-', @args >
I don't know if that would be better, or converting @args to a list of quoted strings, essentially keeping the current behavior.
-- Felipe Contreras