git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “send-email: improve recipients_cmd()”
  1. send-email: improve recipients_cmd()Felipe Contreras, Apr 27, 2013
  2. Junio C HamanoApr 28, 2013
  3. Felipe ContrerasApr 29, 2013
  4. Junio C HamanoApr 29, 2013
  5. Felipe ContrerasApr 29, 2013
  6. Junio C HamanoApr 29, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.