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