Re: git vs git

From: Randal L. Schwartz <merlyn@stonehenge.com>
Date: 2006-01-31 03:55:36
>>>>> "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.  I think you want
those last two lines to be:

        export PATH="$gitpath:$PATH"
        exec "$gitpath/git" "$@"

Typical lazy shell programmer. :) :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
-
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.html
Received on Tue Jan 31 03:56:15 2006

This archive was generated by hypermail 2.1.8 : 2006-01-31 03:56:24 EST