From 77cfffee6177fb0421fa0fce15d6a1875bde4816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20W=C3=BChrer?= Date: Sat, 18 May 2024 21:04:34 +0200 Subject: manuals, sum-down, radix --- man/man1/all.1 | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 man/man1/all.1 (limited to 'man/man1/all.1') diff --git a/man/man1/all.1 b/man/man1/all.1 new file mode 100644 index 0000000..28f9597 --- /dev/null +++ b/man/man1/all.1 @@ -0,0 +1,39 @@ +.TH all 1 2022-05-27 utils + +.SH NAME +all \- logical and operator + +.SH SYNOPSIS +.B all +.RI [ arg\ ... ] + +.SH DESCRIPTION +.B all +evaluates each parameter according to the +.BR bash (1) +built-in +.B test +until the first the evaluates to false. +Returns true if all parameters evaluate to true, or no paramters are passed. +Note, however, that the shell may omit parameters +that would evaluate to false. + +Admittedly, this is not as useful as it could be. +As +.B all +does not run any commands, it cannot be used for lazy evaluation. + +.SH EXIT STATUS +.TP +.B 0 +No parameter evaluates to false. +.TP +.B 1 +At least one parameter evaluates to false. + +.SH EXAMPLES +.B all +"$a" "$b" "$c" + +.SH SEE ALSO +.BR any (1),\ xargs (1),\ map (1),\ fmap (1) -- cgit v1.2.3