; Fix last change in shell-command-to-string
* lisp/simple.el (shell-command-to-string): Fix typo and improve wording. Problem reported by Eli Zaretskii <eliz@gnu.org>.
This commit is contained in:
parent
c3a7084573
commit
94705f8300
1 changed files with 4 additions and 3 deletions
|
@ -5066,9 +5066,10 @@ COMMAND before passing it as an argument to this function.
|
||||||
|
|
||||||
Use this function only when a shell interpreter is needed. In
|
Use this function only when a shell interpreter is needed. In
|
||||||
other cases, consider alternatives such as `call-process' or
|
other cases, consider alternatives such as `call-process' or
|
||||||
`process-lines', which do not invoke the shell. Prefer built-in
|
`process-lines', which do not invoke the shell. Consider using
|
||||||
functions like `mv' to the external command \"mv\". For more
|
built-in functions like `rename-file' instead of the external
|
||||||
information, see Info node ‘(elisp)Security Considerations’."
|
command \"mv\". For more information, see Info node
|
||||||
|
‘(elisp)Security Considerations’."
|
||||||
(with-output-to-string
|
(with-output-to-string
|
||||||
(with-current-buffer standard-output
|
(with-current-buffer standard-output
|
||||||
(shell-command command t))))
|
(shell-command command t))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue