SHTK_VERSION_AT_MOST(3)
β¨ NAME β¨
okay so this is the SHTK_VERSION_AT_MOST(3) page from the Library Functions Manual, and it's all about shtk_version_at_most β the little function that checks if shtk is a maximum version π
π LIBRARY π
shtk_import version
πͺ SYNOPSIS πͺ
shtk_version_at_most version
π DESCRIPTION π
The shtk_version_at_most function does a vibe check on the version of the in-use shtk: it checks if that version is, at most, the version given in version. no cap, that's literally its whole thing π«Ά
π RETURN VALUES π
shtk_version_at_mostreturns0(true) if the in-use shtk is versionversionor earlier β¨- it returns
1(false) otherwise π
π EXAMPLES π
here's the little snippet, bestie:
if shtk_version_at_most 1.10; then
# Maybe exit if we know we do not work well with 1.10 and above.
fi
the comment is doing the explaining: maybe exit if you know you do not work well with 1.10 and above π¦
π SEE ALSO π
go check out shtk(3) and shtk_version(3) β iykyk π
π°οΈ HISTORY π°οΈ
shtk_version_at_most first appeared in shtk 1.5 πΈ
okay thatβs a wrap, bestie π
β this one comes from Debian, dated November 7, 2014, and you were reading SHTK_VERSION_AT_MOST(3) π«Άπ
π¦ 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