FUNCTION::ENV_VAR(3stap)
π FUNCTION::ENV_VAR π
okay so bestie, we're in the 3stap manual, which is the SystemTap Tapset Reference β yes, the whole context-functions girlie squad lives here. pull up a chair, this one's short and sweet and lowkey iconic. π
β¨ NAME β¨
function::env_var β fetch an environment variable from the current process π«Ά
β¨ SYNOPSIS β¨
env_var:string(name:string)
β¨ ARGUMENTS β¨
nameβ the name of the environment variable you wanna go grab, bestie. that's it, that's the whole argument. π
β¨ DESCRIPTION β¨
so basically? it returns the contents of the environment value you specified, for the current process. that's the vibe. πΈ
and if that variable isn't set? you don't get an error, you don't get drama, you get an empty string. no cap. it's giving "sorry bestie, nothing here" but politely. π
fr fr, empty string β error. don't be out here checking for failures that literally aren't happening.
β¨ SEE ALSO β¨
and that's the whole page, queen. this lil beauty comes to you from the SystemTap Tapset Reference, and the date on the tin is September 2026. go forth and read your environment variables, ily, bye! πβ¨π
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms