Re: allowing aliases to override builtins to support default options
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Mar 6, 2009, 23:51 UTC
- Message-ID
- <76718490903061551m24a95ed8r2e334ff0e6f0fcf3@mail.gmail.com>
- In-Reply-To
- <7vhc26qls3.fsf@gitster.siamese.dyndns.org>
On Fri, Mar 6, 2009 at 6:22 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 12 quoted lines
> Because sane shells do not expand aliases when used in a script, and gives > a handy way to defeat the alias even from the command line. > > $ alias ls='ls -aF' > $ echo ls >script > $ chmod +x script > > and compare: > > $ ./script > $ ls > $ /bin/ls
Understood. And if git could do the same, still no?
j.