Re: [PATCH] Improve "git grep" flags handling
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Sep 13, 2005, 19:09 UTC
- Message-ID
- <Pine.LNX.4.58.0509131203280.3351@g5.osdl.org>
- In-Reply-To
- <7v8xy03ilk.fsf@assigned-by-dhcp.cox.net>
On Tue, 13 Sep 2005, Junio C Hamano wrote:
> > I heard somebody say the shell arrays actually came from Korn, > so /bin/bash is a wrong thing to do if that is the case.
Me.
There are differences in indexing the arrays between ksh and bash, but I think the git-grep.sh style of usage should work on both bash and ksh.
[ goes off and tests ]
Indeed. I just tested the thing I sent out with "ksh git-grep.sh .." and it worked fine.
Using "zsh" the grep flags don't work, and "tcsh" obviously will never run _any_ valid shell code ;)
Linus