diff options
author | David Wührer <def@gmx.at> | 2024-05-18 21:04:34 +0200 |
---|---|---|
committer | David Wührer <def@gmx.at> | 2024-05-18 21:04:34 +0200 |
commit | 77cfffee6177fb0421fa0fce15d6a1875bde4816 (patch) | |
tree | 251428cdd482ea50cfb019dbd3c3bafd79d2fd14 /man/man1/any.1 | |
parent | 75b23ce1ff0daab363725a2a5755ea80bbeaa68e (diff) |
manuals, sum-down, radix
Diffstat (limited to 'man/man1/any.1')
-rw-r--r-- | man/man1/any.1 | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/man/man1/any.1 b/man/man1/any.1 new file mode 100644 index 0000000..71b93e6 --- /dev/null +++ b/man/man1/any.1 @@ -0,0 +1,41 @@ +.TH any 1 2022-05-27 utils + +.SH NAME +any \- logical or operator + +.SH SYNOPSIS +.B or +.RI [ arg\ ... ] + +.SH DESCRIPTION +.B any +evaluates each parameter according to the +.BR bash (1) +built-in +.B test +until the first the evaluates to true. +Returns false if all parameters evaluate to false. +If no parameters are passed, returns true. + +The shell may omit parameters +that would evaluate to false. + +Admittedly, this is not as useful as it could be. +As +.B or +does not run any commands, it cannot be used for lazy evaluation. + +.SH EXIT STATUS +.TP +.B 0 +Not all parameters evaluate to false. +.TP +.B 1 +All parameters evaluate to false. + +.SH EXAMPLES +.B or +"$a" "$b" "$c" + +.SH SEE ALSO +.BR all (1),\ xargs (1),\ map (1),\ fmap (1) |