# Re: git --exec-path conversion

2 messages from 2005-11-19 to 2005-11-19. Participants: Marco Costalba, Johannes Schindelin.
Thread: https://gitlist.dev/t/2602

## Marco Costalba, 2005-11-19 11:32

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

```
Johannes Schindelin wrote:

>Hi,
>
>On Sat, 19 Nov 2005, Marco Costalba wrote:
>
>>    if (cmd.left(3) == "git") 
>>         cmd = cmd.prepend(exec-path);
>
>
>Little nit: Test for "git-", because "git" and "gitk" will stay in the 
>PATH.
>
You are rights. Thanks.

Also 'exec-path' is not a valid C++ identifier, it should be

    if (cmd.left(4) == "git-") 
         cmd = cmd.prepend(exec_path);


Incredible how many errors in only two lines of code :-)

Marco



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

```

## Johannes Schindelin, 2005-11-19 13:51

Subject: Re: git --exec-path conversion
Message-ID: <Pine.LNX.4.63.0511191449230.31922@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0511191449230.31922%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <20051119113247.91022.qmail@web26311.mail.ukl.yahoo.com>

```
Hi,

On Sat, 19 Nov 2005, Marco Costalba wrote:

> Incredible how many errors in only two lines of code :-)

If you want to know how to introduce 3 bugs in just 512 bytes of 
production code (i.e. not a development version), see

	http://www.xbox-linux.org/wiki/The_Hidden_Boot_Code_of_the_Xbox

Ciao,
Dscho

```
