]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-parse-double-quote): If a double-quoted argument resolves to
authorJohn Wiegley <johnw@newartisans.com>
Fri, 26 Aug 2005 22:35:48 +0000 (22:35 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 26 Aug 2005 22:35:48 +0000 (22:35 +0000)
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

index 7e0be3138e88ba1df0ad9adb8b819a31990c6f1c..322a0173b276074fd298f60e303e26dc5f0e4e37 100644 (file)
@@ -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 ()