Thread (10 messages) flat view 10 messages, 7 authors, 2016-06-15

Re: git vs git

From: Randal L. Schwartz <hidden>
Date: 2016-06-15 22:42:17

quoted
quoted
quoted
quoted
"Erik" == Erik Mouw [off-list ref] 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
[off-list ref] <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!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help