public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Andreas Ericsson <ae@op5•se>
To: Ramana Kumar <ramana.kumar@gmail•com>
Cc: git@vger•kernel.org
Subject: Re: recursive aliases
Date: Thu, 23 Sep 2010 13:34:02 +0200	[thread overview]
Message-ID: <4C9B3B2A.2080604@op5.se> (raw)
In-Reply-To: <AANLkTi=VDmyhUDYKc38bOZWLncZ_twQGB2n5KgbgP_tf@mail.gmail.com>

On 09/23/2010 08:07 AM, Ramana Kumar wrote:
> Are recursive aliases in any way allowed?

They're not just not allowed; they're not even possible.

> What about aliases that don't refer to themselves, but refer to other aliases?
> 

Again, this isn't possible. How could you configure something like that?

> Obviously I can just call git from the shell with a ! alias, but
> wondering if there's any better way.

There isn't. The simple aliases are there to let you run certain
commands with certain default parameters as a new command. Normal
commands have no way of calling other commands (or themselves)
recursively. That's what shell-scripts are for.

-- 
Andreas Ericsson                   andreas.ericsson@op5•se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

  reply	other threads:[~2010-09-23 11:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23  6:07 recursive aliases Ramana Kumar
2010-09-23 11:34 ` Andreas Ericsson [this message]
2010-09-23 22:49   ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C9B3B2A.2080604@op5.se \
    --to=ae@op5$(echo .)se \
    --cc=git@vger$(echo .)kernel.org \
    --cc=ramana.kumar@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox