SHTK_BOOL(3)
π SHTK_BOOL(3) π
okay so this is the page for bool in section 3 of the manual, bestie β welcome, pull up a chair π
β¨ NAME β¨
bool β literally the utilities you need to mess with boolean values π¦
π§ LIBRARY π§
shtk_import bool
that's it, that's the whole import. slay π
πΈ DESCRIPTION πΈ
so the bool module is the little toolbox that gives you utilities for manipulating boolean values. it's giving "small but mighty", fr fr π
and now the part you need to internalize, bestie, because it's lowkey the whole personality of this page:
π¨ in shell, truth is represented by0and falsehood is represented by non-0values. π¨
no cap. yes, that's backwards from basically everything you've ever touched. and yes, this may come in as confusing if you're used to other programming languages, because honestly it goes counter to all of them πππ like not a single one, it's out here doing its own thing. main character energy honestly π
so if you ever catch yourself reading a shell script and going "wait, zero means TRUE??" β yeah girl. zero means true. write it on a sticky note. put it on your mirror π
π«Ά SEE ALSO π«Ά
go read those next, iykyk π
β HISTORY β
bool first appeared in shtk 1.4 β so it's been serving looks since way back π
and that's the whole page!! π₯³ this one shipped in the Debian packaging dated November 5, 2014, for the library functions manual, version shtk 1.4 β mwah, tysm for reading bestie, go forth and remember that 0 is true πβ¨π
π¦ where this page comes from
- nixos 26.05: shtk 1.7
- nixpkgs unstable: shtk 1.7
- Copyright 2014 Google Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms