Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Eshell: Alias in Dollars Expansion?

2 views
Skip to first unread message

Christopher Howard

unread,
Dec 7, 2017, 10:00:11 PM12/7/17
to help-gn...@gnu.org
Hi, in eshell I can do this:

~/Repos/guile-td $ alias git-brief git rev-parse --short HEAD
~/Repos/guile-td $ git-brief
d1007b7

But the alias doesn't seem to work in a dollars expansion:

~/Repos/guile-td $ echo ${git-brief}

No catch for tag: eshell-replace-command, (let ((eshell-command-name
(quote "git-brief")) (eshell-command-arguments (quote nil)) (eshell-
prevent-alias-expansion (quote ("git-brief")))) (eshell-trap-errors
(eshell-named-command "git" (list "rev-parse" "--short" "HEAD"))))

Why not?

--
http://www.foi.org
signature.asc
0 new messages