From: Jay Soffian Date: Mon, 24 Mar 2008 14:54:28 GMT Subject: Re: git-config: aliases with parameter expansion ($1 and such) Message-ID: <76718490803240754g161998bereb5bf3a22eb8ca76@mail.gmail.com> In-Reply-To: <7vzlso3kjc.fsf@gitster.siamese.dyndns.org> On Sun, Mar 23, 2008 at 10:47 PM, Junio C Hamano wrote: > "Jay Soffian" writes: > > > All my shell aliases therefor look like: > > > > h = "!sh -c 'git alias \"$1\" || git help \"$1\"' -" > > > > (Notice the trailing '-'.) > > Just for my curiosity, why aren't they > > > h = "!sh -c 'git alias \"$0\" || git help \"$0\"'" > > without trailing '-'? Lost to the mists of time. But I think for consistency with other aliases where I was checking $#. Maybe. j.