SHTK_BOOL(3)

πŸ“¦ version 1.7, in nixos 26.05, nixpkgs unstable

πŸ’– 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 by 0 and falsehood is represented by non-0 values. 🚨

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