# Re: git --exec-path conversion

1 messages from 2005-11-19 to 2005-11-19. Participants: Marco Costalba.
Thread: https://gitlist.dev/t/2603

## Marco Costalba, 2005-11-19 13:50

Subject: Re: git --exec-path conversion
Message-ID: <20051119135005.54838.qmail@web26314.mail.ukl.yahoo.com>
URL: https://gitlist.dev/e/20051119135005.54838.qmail%40web26314.mail.ukl.yahoo.com

```
Junio C Hamano wrote:

>Marco Costalba <mcostalba@yahoo.it> writes:
>
>>if I understood correctly, git programs will be installed
>>somewhere in $PATH for at least next two months.
>
>
>I suspect things will stay in /usr/bin longer than that, but
>futureproofing is good in any case.
>
>Assuming you are writing things in C or C++:
>
> - run "git --exec-path" at the very beginning of main(),
> - read the output, prepend it to $PATH using setenv(3).
>
>and I think you are done. 

Yes. Thanks.




		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

```
