Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Re: [PATCH] Minor portability patch to git-submodule

From: Andy Dougherty <hidden>
Date: 2016-06-15 22:44:00

On Mon, 17 Dec 2007, Johannes Schindelin wrote:
On Mon, 17 Dec 2007, Andy Dougherty wrote:
quoted
-	git ls-files --stage -- "$@" | grep -e '^160000 ' |
+	git ls-files --stage -- "$@" | egrep -e '^160000 ' |
Nack.  egrep is not available on all platforms.  But then I have to wonder 
why not saying "grep '^160000 '" instead?
Your last suggestion is easily and obviously better -- I'll assume you 
don't need an explicit patch and can just hand-edit mine.  Still, I'd have 
thought egrep was fine.  As far as I recall, it goes back to v7 Unix.  Or 
are there non-unix systems at issue (perhaps cygwin variants or something) 
that have grep but not egrep?

Anyway, thanks.

-- 
    Andy Dougherty		doughera@lafayette.edu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help