mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
Make (shell) in (chibi shell) return exit status of last command.
This commit is contained in:
parent
f367cb86e2
commit
6bb62979fd
1 changed files with 2 additions and 1 deletions
|
@ -494,10 +494,11 @@
|
|||
(lambda () #f)
|
||||
(lambda () #f)))))
|
||||
|
||||
;;> Returns the exit status of the last command in the pipeline.
|
||||
(define-syntax shell
|
||||
(syntax-rules ()
|
||||
((shell cmd ...)
|
||||
(for-each shell-wait (shell& cmd ...)))))
|
||||
(map shell-wait (shell& cmd ...)))))
|
||||
|
||||
(define-syntax shell->string
|
||||
(syntax-rules ()
|
||||
|
|
Loading…
Add table
Reference in a new issue