GNU bug report logs - #31765
26.1; Can't define alias for git in eshell

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita <at> gmail.com>

Date: Sat, 9 Jun 2018 03:00:01 UTC

Severity: normal

Tags: fixed, notabug, patch

Merged with 27954

Found in versions 25.2, 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Carlos Pita <carlosjosepita <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 26.1; Can't define alias for git in eshell
Date: Sat, 9 Jun 2018 12:35:05 -0300
By trial & error I came to the conclusion that the "juxtaposition"
case is not valid anymore. The example in the documentation:

     > For example, ll is a common alias for ls -l, and would be defined
     > with the command invocation ‘alias ll ls -l’; with this defined,
     > running ‘ll foo’ in Eshell will actually run ‘ls -l foo’.

plainly fails, it doesn't list foo but the current directory, foo is
simply ignored. The correct way seems to be:

     alias ll 'ls -l $*'

which is not documented (not even in the draft guide [1]).

---

[1] https://www.gnu.org/software/emacs/draft/manual/html_node/eshell/Aliases.html#Aliases




This bug report was last modified 7 years and 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.