Re: [RFC 2/4] Properly accept quoted space in filenames
- From
Philip Oakley <philipoakley@iee.org>
- Date
- Nov 21, 2014, 23:01 UTC
- Message-ID
- <9E7656E05CE648B3A357858B4520110D@PhilipOakley>
- In-Reply-To
- <xmqqegswyygc.fsf@gitster.dls.corp.google.com>
From: "Junio C Hamano" <gitster@pobox.com>
Show 11 quoted lines
> Philip Oakley <philipoakley@iee.org> writes:
>
>> sub handleCompileLine
>> {
>> my ($line, $lineno) = @_;
>> - my @parts = split(' ', $line);
>> + # my @parts = split(' ', $line);
>> + my @parts = quotewords('\s+', 0, $line);
>
> Can somebody enlighten me why/if quotewords is preferrable over
> shellwords in the context of this patch?"No" - Ignorance is bliss ;-) I think my cargo culting was the result of some googling for "quoting perl variables" or some such, which obviously came up with quotewords - I'm happy to take advice on this one!
quotewords did appear to work though back when I wrote this: 86dcfcf (Properly accept quoted space in filenames, 2012-05-06) -- Philip
-- -- *** Please reply-to-all at all times *** *** (do not pretend to know who is subscribed and who is not) *** *** Please avoid top-posting. *** The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free. You received this message because you are subscribed to the Google Groups "msysGit" group. To post to this group, send email to msysgit@googlegroups.com To unsubscribe from this group, send email to msysgit+unsubscribe@googlegroups.com For more options, and view previous threads, visit this group at http://groups.google.com/group/msysgit?hl=en_US?hl=en --- You received this message because you are subscribed to the Google Groups "Git for Windows" group. To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.