Thread (7 messages) flat view 7 messages, 3 authors, 2016-06-15

Re: [PATCH v2] Make git send-email accept $EDITOR with arguments

From: Jeff King <hidden>
Date: 2016-06-15 22:44:01

On Fri, Dec 21, 2007 at 04:23:11PM +0100, Gustaf Hendeby wrote:
quoted
If you are going to do it that way, I suspect you want to quotemeta
$compose_filename.
Generally that would be true, but is that really necessary when I know
$compose_filename is defined as:

my $compose_filename = ".msg.$$";
I know; it is just easier to see that it is correct with the quotemeta
(and correct in the face of somebody changing the message later).
Or, should I take it that you prefer the version using split?  I didn't
really feel good about the possibility of splitting paths with spaces
that came with that one though.
I am fine with using the shell. Though keep in mind that the two
solutions will behave differently with

  EDITOR='foo; bar'

That is, system("$editor $message") will actually invoke the shell,
whereas system(split(/ /, $editor), $message) will _just_ split on
whitespace. We should do whatever is consistent with the rest of the git
commands (off the top of my head, I don't know).

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help