From 3bab4a46de08987d0c07c30f20513b2fdd573d64 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 26 Aug 2005 22:51:28 +0000 Subject: [PATCH] *** empty log message *** --- lisp/ChangeLog | 4 ++++ lisp/eshell/esh-util.el | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1c23b4b53fc..659a96305ae 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 2005-08-26 John Wiegley + * eshell/esh-cmd.el (eshell-rewrite-named-command): Changed the + code around a bit so that an extraneous nil argument is not added + to a command when no args are given. + * eshell/esh-arg.el (eshell-parse-double-quote): If a double-quoted argument resolves to nil, return it as an empty string rather than as nil. This made it impossible to pass "" to diff --git a/lisp/eshell/esh-util.el b/lisp/eshell/esh-util.el index 70179097d87..c05f6abb23b 100644 --- a/lisp/eshell/esh-util.el +++ b/lisp/eshell/esh-util.el @@ -294,8 +294,7 @@ If N or M is nil, it means the end of the list." "Flatten any lists within ARGS, so that there are no sublists." (let ((new-list (list t))) (eshell-for a args - (if (and (not (eq a nil)) - (listp a) + (if (and (listp a) (listp (cdr a))) (nconc new-list (eshell-flatten-list a)) (nconc new-list (list a)))) -- 2.39.2