From: Junio C Hamano Date: Thu, 14 Sep 2006 06:34:05 GMT Subject: Re: [PATCH 2/2] Handle invalid argc gently Message-ID: <7vpsdz5542.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20060914013146.GD7044@basalt.office.altlinux.org> "Dmitry V. Levin" writes: > On Wed, Sep 13, 2006 at 06:12:02PM -0700, Junio C Hamano wrote: >> "Dmitry V. Levin" writes: >> >> > describe, git: Handle argc==0 case the same way as argc==1. >> >> When does one get (ac == 0)? > > When one executes something like > execlp("git", NULL, NULL); Fair enough. What is the valid reason to do execlp("git", NULL, NULL)?