[alias--> command line]
Stanimir Stamenkov
s7an10 at netscape.net
Wed Oct 9 15:28:52 UTC 2024
Wed, 09 Oct 2024 16:48:57 +0200, /Uwe Brauer/:
>> I use histedit quite a bit, but use the following alias (not sure where
>> I obtainted it from)
>>
>> histed = !TMP=$($HG root) $HG histedit "$@"
>>
>> hg histed
>
> I solved my problem by creating a shell script that just contained the
> line
>
> hg histed
>
>
> And adapted the emacs lisp file for that script.
>
>
> But in general I would like to understand how I can convert the alias
>
> To a correct hg command????
I don't know if I'm missing something obvious here
<https://www.mercurial-scm.org/doc/hgrc.5.html#alias>:
> An alias can start with an exclamation point (!) to make it a shell
> alias. A shell alias is executed with the shell and will let you run
> arbitrary commands...
>
> Shell aliases are executed in an environment where $HG expands to the
> path of the Mercurial that was used to execute the alias...
That is you omit ! from the actual command, and replace $HG with hg.
--
More information about the Mercurial
mailing list