On Mon, Jan 30, 2006 at 08:55:36AM -0800, Randal L. Schwartz wrote: > >>>>> "Erik" == Erik Mouw <erik@harddisk-recovery.com> writes: > > Erik> #! /bin/sh > Erik> # sct: call git > Erik> gitpath=/path/to/git > Erik> export PATH=$gitpath:$PATH > Erik> exec $gitpath/git $* > > You must not get a lot of spaces in your pathnames. That usually doesn't happen in the kernel tree (which is what the OP wants to follow). > I think you want > those last two lines to be: > > export PATH="$gitpath:$PATH" > exec "$gitpath/git" "$@" > > Typical lazy shell programmer. :) :) Hey, I said "untested" :) But yeah, you're right. Your syntax is correct, every time I write such a wrapper I try to remember it... Erik -- +-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 -- | Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Tue Jan 31 04:24:21 2006
This archive was generated by hypermail 2.1.8 : 2006-01-31 04:24:30 EST