* Advanced aliases with arguments (?)
@ 2007-11-04 0:40 Mike Hommey
2007-11-04 0:45 ` Mike Hommey
0 siblings, 1 reply; 2+ messages in thread
From: Mike Hommey @ 2007-11-04 0:40 UTC (permalink / raw)
To: git
Hi,
I read on http://git.or.cz/gitwiki/Aliases that
Starting with version 1.5.3, git supports appending the
arguments to commands prefixed with "!", too. If you need to
perform a reordering, or to use an argument twice, you can use
this trick:
[alias]
example = !sh -c "ls $1 $0"
AFAICT, it doesn't work with the 1.5.3.5 I use. Is it false advertising
or was there some regression ?
Mike
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Advanced aliases with arguments (?)
2007-11-04 0:40 Advanced aliases with arguments (?) Mike Hommey
@ 2007-11-04 0:45 ` Mike Hommey
0 siblings, 0 replies; 2+ messages in thread
From: Mike Hommey @ 2007-11-04 0:45 UTC (permalink / raw)
To: git
On Sun, Nov 04, 2007 at 01:40:20AM +0100, Mike Hommey wrote:
> Hi,
>
> I read on http://git.or.cz/gitwiki/Aliases that
>
> Starting with version 1.5.3, git supports appending the
> arguments to commands prefixed with "!", too. If you need to
> perform a reordering, or to use an argument twice, you can use
> this trick:
>
> [alias]
> example = !sh -c "ls $1 $0"
>
>
> AFAICT, it doesn't work with the 1.5.3.5 I use. Is it false advertising
> or was there some regression ?
Aaaah it does work, but you need to use single quotes, not double
quotes.
Mike
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-04 0:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-04 0:40 Advanced aliases with arguments (?) Mike Hommey
2007-11-04 0:45 ` Mike Hommey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).