>From fd4a8b3b2b42dbf1520a6cd8cc3b265f55ea6ca6 Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Wed, 27 Sep 2017 00:01:23 -0400 Subject: [PATCH] Revert change to eshell alias argument parsing (Bug#28568) Update documentation of 'll' example alias to minimize confusion This reverts commit e66e81679c3c91d6bf8f62c7abcd968430b4d1fe. --- doc/misc/eshell.texi | 6 +++--- lisp/eshell/em-alias.el | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi index 8963826c4c..be8e659544 100644 --- a/doc/misc/eshell.texi +++ b/doc/misc/eshell.texi @@ -431,9 +431,9 @@ Aliases Aliases are commands that expand to a longer input line. For example, @command{ll} is a common alias for @code{ls -l}, and would be defined -with the command invocation @samp{alias ll ls -l}; with this defined, -running @samp{ll foo} in Eshell will actually run @samp{ls -l foo}. -Aliases defined (or deleted) by the @command{alias} command are +with the command invocation @samp{alias ll 'ls -l $*'}; with this +defined, running @samp{ll foo} in Eshell will actually run @samp{ls -l +foo}. Aliases defined (or deleted) by the @command{alias} command are automatically written to the file named by @code{eshell-aliases-file}, which you can also edit directly (although you will have to manually reload it). diff --git a/lisp/eshell/em-alias.el b/lisp/eshell/em-alias.el index f951efa65d..80b14a9b93 100644 --- a/lisp/eshell/em-alias.el +++ b/lisp/eshell/em-alias.el @@ -225,7 +225,7 @@ eshell-maybe-replace-by-alias (eshell-command-arguments ',eshell-last-arguments) (eshell-prevent-alias-expansion ',(cons command eshell-prevent-alias-expansion))) - ,(eshell-parse-command (nth 1 alias) args))))))) + ,(eshell-parse-command (nth 1 alias)))))))) (defun eshell-alias-completions (name) "Find all possible completions for NAME. -- 2.11.0