shell: Make 'continue' work in while loops.
* geesh/shell.scm (sh:while): Use 'call-with-continue' when invoking the body thunk.
This commit is contained in:
parent
0dc3f63cad
commit
4d1e0c96a4
|
@ -353,7 +353,7 @@ of each thunk sent to the input of the next thunk."
|
|||
(without-errexit test-thunk)
|
||||
(cond
|
||||
((= (get-status) 0)
|
||||
(thunk)
|
||||
(call-with-continue thunk)
|
||||
(loop (get-status)))
|
||||
(else
|
||||
(set-status! last-status)))))))
|
||||
|
|
Loading…
Reference in New Issue