This commit is contained in:
Gabriel Horner 2020-02-06 17:03:32 -05:00 committed by GitHub
parent debd180681
commit 6f07f3af74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,7 +303,7 @@ Contains the function `signal/pipe-signal-received?`. Usage:
Returns true if `PIPE` signal was received. Example: Returns true if `PIPE` signal was received. Example:
``` shellsession ``` shellsession
$ bb '((fn [x] (println x) (when (not (sig/pipe-signal-received?)) (recur (inc x)))) 0)' | head -n2 $ bb '((fn [x] (println x) (when (not (signal/pipe-signal-received?)) (recur (inc x)))) 0)' | head -n2
1 1
2 2
``` ```