# HG changeset patch # User Richard M. Stallman # Date 843595488 0 # Node ID 20690a1ec10022710818638f2c37db91a8a351b9 # Parent a56a8c6f2d8fb819bfbdc49bdff091f181972388 (shell-command-to-string): New function. diff -r a56a8c6f2d8f -r 20690a1ec100 lisp/simple.el --- 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)))