chickadee » posix-utils » environment-variable-true?

(environment-variable-true? NAME [TRUTHS ("y" "yes" "1")]) -> booleanprocedure

Is the environment variable NAME lowercase value in TRUTHS?

NAME is a string. TRUTHS is a (list-of string) recognized as true values.

FOO=1 BAR= csi -q -R posix-utils
#;1> (environment-variable-true? "FOO")
#t
#;2> (environment-variable-true? "BAR")
#f