git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Junio C HamanoNext: Johannes Schindelin
Message 4 of 7 in “allowing aliases to override builtins to support default options”
  1. Jay SoffianMar 6, 2009
  2. Sverre RabbelierMar 6, 2009
  3. Junio C HamanoMar 6, 2009
  4. Jay SoffianMar 6, 2009
  5. Johannes SchindelinMar 7, 2009
  6. Jay SoffianMar 7, 2009
  7. Johannes SchindelinMar 7, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.