Mercurial > emacs
changeset 16312:20690a1ec100
(shell-command-to-string): New function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 24 Sep 1996 20:04:48 +0000 |
parents | a56a8c6f2d8f |
children | 36813fc30f3e |
files | lisp/simple.el |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/simple.el Tue Sep 24 20:03:15 1996 +0000 +++ b/lisp/simple.el Tue Sep 24 20:04:48 1996 +0000 @@ -941,6 +941,11 @@ (set-buffer buffer) (goto-char (point-min))) (display-buffer buffer)))))))) + +(defun shell-command-to-string (command) + "Execute shell command COMMAND and return its output as a string." + (with-output-to-string + (call-process shell-file-name nil t nil "-c" command))) (defconst universal-argument-map (let ((map (make-sparse-keymap)))