From b5306f79040c1e5cf9e98ce24eaefa5621b5b0ff Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 26 Aug 2005 22:35:48 +0000 Subject: [PATCH] (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. --- lisp/eshell/esh-arg.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 () -- 2.39.2