From: John Wiegley Date: Fri, 26 Aug 2005 22:35:48 +0000 (+0000) Subject: (eshell-parse-double-quote): If a double-quoted argument resolves to X-Git-Tag: emacs-pretest-22.0.90~7418 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b5306f79040c1e5cf9e98ce24eaefa5621b5b0ff;p=emacs.git (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 a shell script as a null string argument. --- diff --git a/lisp/eshell/esh-arg.el b/lisp/eshell/esh-arg.el index 7e0be3138e8..322a0173b27 100644 --- a/lisp/eshell/esh-arg.el +++ b/lisp/eshell/esh-arg.el @@ -342,8 +342,10 @@ special character that is not itself a backslash." (save-restriction (forward-char) (narrow-to-region (point) end) - (list 'eshell-escape-arg - (eshell-parse-argument))) + (let ((arg (eshell-parse-argument))) + (if (eq arg nil) + "" + (list 'eshell-escape-arg arg)))) (goto-char (1+ end))))))) (defun eshell-parse-special-reference ()