2005-08-26 John Wiegley <johnw@newartisans.com>
+ * 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
"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))))