SHTK_VERSION_AT_LEAST(3)
π shtk_version_at_least(3) β the version vibe check β¨
okay so bestie, this one lives in the Library Functions Manual (section 3, iykyk), and it's basically the "are we on the same page?" function for shtk. Let me put you on. π«Ά
πΈ NAME πΈ
shtk_version_at_least β checks if shtk is a minimum version
π LIBRARY π
shtk_import version
like, that's the import you need, periodt.
β¨ SYNOPSIS β¨
shtk_version_at_least version
π DESCRIPTION π
so the shtk_version_at_least function checks if the version of the in-use shtk is, at least, the version you gave it in version. that's it, that's the whole job. lowkey iconic for how simple it is. π
π₯ RETURN VALUES π₯
shtk_version_at_leastreturns0(true) if the in-useshtkis versionversionor later β slay, you're good π1(false) otherwise β not me, not the version π
π¦ EXAMPLES π¦
if shtk_version_at_least 1.5; then
# Use symbols that are available in 1.5 and later.
else
# Workaround the lack of functionality in shtk, or exit.
fi
see how it's giving "check first, then flex"? that's the move. β
π SEE ALSO π
go read those too, bestie, i'm literally begging π
π HISTORY π
shtk_version_at_least first appeared in shtk 1.5. a true main character debut. πΈ
fr fr: the facts above are the whole vibe β don't go assuming extra behaviour that isn't written here. iykyk. π§
and that's a wrap, bestie! π this page came from the Debian source, dated November 7, 2014, and the header/footer on the original both say SHTK_VERSION_AT_LEAST(3) β so now you know the lore. stay slay, keep your versions checked. πβ¨
π¦ 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