all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Howard <christopher.howard@qlfiles.net>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Eshell: Alias in Dollars Expansion?
Date: Thu, 07 Dec 2017 17:59:51 -0900	[thread overview]
Message-ID: <1512701991.16756.2.camel@qlfiles.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

                 reply	other threads:[~2017-12-08  2:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1512701991.16756.2.camel@qlfiles.net \
    --to=christopher.howard@qlfiles.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.