From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Christopher Howard Newsgroups: gmane.emacs.help Subject: Eshell: Alias in Dollars Expansion? Date: Thu, 07 Dec 2017 17:59:51 -0900 Message-ID: <1512701991.16756.2.camel@qlfiles.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-/02TgzFCS2AhX9U5QmPS" X-Trace: blaine.gmane.org 1512702038 32541 195.159.176.226 (8 Dec 2017 03:00:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Dec 2017 03:00:38 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 08 04:00:33 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eN8tq-0008BN-9B for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Dec 2017 04:00:30 +0100 Original-Received: from localhost ([::1]:35362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN8tw-0007CQ-24 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2017 22:00:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN8tQ-0007C5-RS for help-gnu-emacs@gnu.org; Thu, 07 Dec 2017 22:00:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN8tM-0002n1-Ik for help-gnu-emacs@gnu.org; Thu, 07 Dec 2017 22:00:04 -0500 Original-Received: from mx.kolabnow.com ([95.128.36.42]:47422) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eN8tM-0002mO-9w for help-gnu-emacs@gnu.org; Thu, 07 Dec 2017 22:00:00 -0500 Original-Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id CF5421D5 for ; Fri, 8 Dec 2017 03:59:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= mime-version:content-type:content-type:date:date:from:from :subject:subject:message-id:received:received:received; s= dkim20160331; t=1512701995; x=1512702017; bh=zWz0h3FQQkyTFjPbZj3 NGoJCS7KEpudLgoEifKImWCM=; b=jNg8iEWVTyFYQOkYviJ7dYTYiJDRNV1vxQ5 ZidR2f86SQIrz0VxlXE9cBOyXvZWGioaUGKCHsMyYUPfXlo3zz2+sh8RCi/cH9oB zsezgRf7AN4OCCJNAxpxVK0cCh21XP0NRVnaAQFPCmT2thpRyph0r0zXmaz2HCfI JqDo/nHGx2rRZsL45knasuesvGbdSknPFzcSGvtmlNO3xrj+2pvzXHhcf8rMHlXn qU/U9gJ6gVUR6YlpVgvYBiSfnxDDADHlez9i/4PU7MDtJYzvRNSS6VH6eRYoDCby chs2/tuQEMXsQNPIqC37E4ZuPw8rXNwpQjRdL7TtYjlXUYMOMXn/BoBWqeUeQO4j mw935uIBENv3/pp65DGbo/hx+cKfKWG6i7Hd95s7ULAAACMtv7+oh7ozf56ucwaE dUMy/QyBCK5nOGO4I3UpwL76HmOxJNzLgwsJhOJ/6QwSaH7n6YcIYUV0ZMjgDOj8 MKao2HtkeoRCnoGU4eh4Z7FXRUSefTdU0dwE3xKarqXBG8HxYwOsHP+wR3X30aFk 8tSSbobAz/iTed+bMMAKEgdO77Mem/5SS9EN2Jwrwn5K3j X-Virus-Scanned: amavisd-new at mykolab.com Original-Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TjA1px2uExfe for ; Fri, 8 Dec 2017 03:59:55 +0100 (CET) Original-Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id 4B6FB18D for ; Fri, 8 Dec 2017 03:59:55 +0100 (CET) Original-Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx002.mykolab.com (Postfix) with ESMTPS id 2E4882326 for ; Fri, 8 Dec 2017 03:59:55 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 95.128.36.42 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115302 Archived-At: --=-/02TgzFCS2AhX9U5QmPS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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? --=20 http://www.foi.org --=-/02TgzFCS2AhX9U5QmPS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEE3cRyrLOhI3rPcNVUee7NbCP9XMUFAloqACcACgkQee7NbCP9 XMVaXAgAkcv3KF8plmOtor8eVM52oXXEnqPClgN7BnP2H7fsB400MC3Jv4eVCrPL 2CRRS34YvRrQwde3UpRjfriN10aeWY75kj5OwLi4qO8Hec13GmWgv3u7m95Z8zsa XyX+8zdAMrgP5bktRF/i+cOVWLYVk7Ek5H0uXr9thCqlV775bWAOjReYYTBlHaKY piOGGc2YJ97yTFSmmyUja1lBE6+8nrGR/ULwg+RR/1owM0LpITpQE8m75dQOkofY 2aaULgUbi8+a6i5Vbrdgcuhb/Oyci0WeclYVQ9otaNgxs61N1bAcKa2C/JAper6N /55dvRv5ICrKU0Nb9/5pjiwOssX5LA== =BiRE -----END PGP SIGNATURE----- --=-/02TgzFCS2AhX9U5QmPS--