]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last change in shell-command-to-string
authorStefan Kangas <stefankangas@gmail.com>
Sun, 17 Sep 2023 18:39:11 +0000 (20:39 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 17 Sep 2023 18:43:37 +0000 (20:43 +0200)
* lisp/simple.el (shell-command-to-string): Fix typo and improve
wording.  Problem reported by Eli Zaretskii <eliz@gnu.org>.

lisp/simple.el

index 12d760a198f7d8a3d04ad66e4e5624a15e5f0d48..8ab4660566d98afcffcf52f9305f252a020fc760 100644 (file)
@@ -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
 other cases, consider alternatives such as `call-process' or
-`process-lines', which do not invoke the shell.  Prefer built-in
-functions like `mv' to the external command \"mv\".  For more
-information, see Info node ‘(elisp)Security Considerations’."
+`process-lines', which do not invoke the shell.  Consider using
+built-in functions like `rename-file' instead of the external
+command \"mv\".  For more information, see Info node
+‘(elisp)Security Considerations’."
   (with-output-to-string
     (with-current-buffer standard-output
       (shell-command command t))))