diff options
| author | Noam Postavsky | 2016-07-03 09:56:36 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2016-07-03 15:05:20 -0400 |
| commit | 178b2f590982e37991bc72b08a9e02b64d750601 (patch) | |
| tree | bbc08a39311cd65d9870376dda28de3d451efb16 /doc | |
| parent | dec756756070d271925c8c2a705de97eb8d7fb0b (diff) | |
| download | emacs-178b2f590982e37991bc72b08a9e02b64d750601.tar.gz emacs-178b2f590982e37991bc72b08a9e02b64d750601.zip | |
Note combine-and-quote-strings doesn't shell quote
* doc/lispref/processes.texi (Shell Arguments):
* lisp/subr.el (combine-and-quote-strings): Add a note that
combine-and-quote-strings doesn't protect arguments against shell
evaluation (Bug #20333).
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/processes.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 5bd0b11cda0..b4542f65cc1 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi | |||
| @@ -215,6 +215,11 @@ converting user input in the minibuffer, a Lisp string, into a list of | |||
| 215 | string arguments to be passed to @code{call-process} or | 215 | string arguments to be passed to @code{call-process} or |
| 216 | @code{start-process}, or for converting such lists of arguments into | 216 | @code{start-process}, or for converting such lists of arguments into |
| 217 | a single Lisp string to be presented in the minibuffer or echo area. | 217 | a single Lisp string to be presented in the minibuffer or echo area. |
| 218 | Note that if a shell is involved (e.g., if using | ||
| 219 | @code{call-process-shell-command}), arguments should still be | ||
| 220 | protected by @code{shell-quote-argument}; | ||
| 221 | @code{combine-and-quote-strings} is @emph{not} intended to protect | ||
| 222 | special characters from shell evaluation. | ||
| 218 | 223 | ||
| 219 | @defun split-string-and-unquote string &optional separators | 224 | @defun split-string-and-unquote string &optional separators |
| 220 | This function splits @var{string} into substrings at matches for the | 225 | This function splits @var{string} into substrings at matches for the |