diff options
| author | John Wiegley | 2005-08-26 22:35:48 +0000 |
|---|---|---|
| committer | John Wiegley | 2005-08-26 22:35:48 +0000 |
| commit | b5306f79040c1e5cf9e98ce24eaefa5621b5b0ff (patch) | |
| tree | 2b94a9dadbd24f8eacafd2376d045a6127d2359b /lisp/eshell | |
| parent | 5b317d749888daba0a4be5516f536fb9396438f2 (diff) | |
| download | emacs-b5306f79040c1e5cf9e98ce24eaefa5621b5b0ff.tar.gz emacs-b5306f79040c1e5cf9e98ce24eaefa5621b5b0ff.zip | |
(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.
Diffstat (limited to 'lisp/eshell')
| -rw-r--r-- | lisp/eshell/esh-arg.el | 6 |
1 files 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." | |||
| 342 | (save-restriction | 342 | (save-restriction |
| 343 | (forward-char) | 343 | (forward-char) |
| 344 | (narrow-to-region (point) end) | 344 | (narrow-to-region (point) end) |
| 345 | (list 'eshell-escape-arg | 345 | (let ((arg (eshell-parse-argument))) |
| 346 | (eshell-parse-argument))) | 346 | (if (eq arg nil) |
| 347 | "" | ||
| 348 | (list 'eshell-escape-arg arg)))) | ||
| 347 | (goto-char (1+ end))))))) | 349 | (goto-char (1+ end))))))) |
| 348 | 350 | ||
| 349 | (defun eshell-parse-special-reference () | 351 | (defun eshell-parse-special-reference () |