From: Felipe Contreras Date: Mon, 29 Apr 2013 05:32:09 GMT Subject: Re: [PATCH] send-email: improve recipients_cmd() Message-ID: In-Reply-To: <7vd2tdoqna.fsf@alter.siamese.dyndns.org> On Mon, Apr 29, 2013 at 12:24 AM, Junio C Hamano wrote: > Felipe Contreras 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