Merge pull request #854 from lockywolf/chibi-shell-return-value-exit-status

Make (shell) in (chibi shell) return exit status of last command.
This commit is contained in:
Alex Shinn 2022-08-24 14:37:14 +09:00 committed by GitHub
commit 2aa6dc829e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ()