#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.301 1999/01/29 22:46:34 cph Exp $
+$Id: runtime.pkg,v 14.302 1999/01/31 20:42:20 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
condition-type:subprocess-exited
condition-type:subprocess-signalled
condition-type:subprocess-stopped
- make-subprocess-context
run-shell-command
- run-synchronous-process))
+ run-synchronous-subprocess))
(define-package (runtime graphics)
(files "graphics")
#| -*-Scheme-*-
-$Id: syncproc.scm,v 1.2 1999/01/29 22:58:29 cph Exp $
+$Id: syncproc.scm,v 1.3 1999/01/31 20:43:21 cph Exp $
Copyright (c) 1999 Massachusetts Institute of Technology
(declare (usual-integrations))
\f
+(load-option 'SUBPROCESS)
+
(define-structure (subprocess-context
(keyword-constructor make-subprocess-context)
(conc-name subprocess-context/))
;; The name of the shell interpreter.
(shell-file-name (os/shell-file-name) read-only #t))
-(define (run-shell-command command #!optional context)
- (let ((context
- (if (or (default-object? context) (not context))
- (make-subprocess-context)
- context)))
- (run-synchronous-process (subprocess-context/shell-file-name context)
- (os/form-shell-command command)
- context)))
+(define (run-shell-command command . options)
+ (apply run-synchronous-subprocess
+ (subprocess-context/shell-file-name context)
+ (os/form-shell-command command)
+ options))
\f
-(define (run-synchronous-process program arguments #!optional context)
- (let* ((context
- (if (or (default-object? context) (not context))
- (make-subprocess-context)
- context))
+(define (run-synchronous-subprocess program arguments . options)
+ (let* ((context (apply make-subprocess-context options))
(directory (subprocess-context/working-directory context))
(process #f))
(bind-condition-handler '()
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.307 1999/01/29 22:46:26 cph Exp $
+$Id: runtime.pkg,v 14.308 1999/01/31 20:42:27 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
condition-type:subprocess-exited
condition-type:subprocess-signalled
condition-type:subprocess-stopped
- make-subprocess-context
run-shell-command
- run-synchronous-process))
+ run-synchronous-subprocess))
(define-package (runtime graphics)
(files "graphics")