changeset 65163:ef138cf4be94

(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.
author John Wiegley <johnw@newartisans.com>
date Fri, 26 Aug 2005 22:35:48 +0000
parents 217750047c30
children 4cc6dbdfa5af
files lisp/eshell/esh-arg.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/eshell/esh-arg.el	Fri Aug 26 18:07:25 2005 +0000
+++ b/lisp/eshell/esh-arg.el	Fri Aug 26 22:35:48 2005 +0000
@@ -342,8 +342,10 @@
 	    (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 ()