Skip to main content

Timeline for Bash - check environment variables

Current License: CC BY-SA 4.0

8 events
when toggle format what by license comment
Jun 9, 2022 at 13:50 comment added balki $$ has the shell's pid, so, tr '\0' '\n' < /proc/$$/environ
Jun 9, 2022 at 13:37 history edited Kusalananda CC BY-SA 4.0
Point out that this is valid on Linux only.
Aug 13, 2015 at 23:04 vote accept Jake
Aug 13, 2015 at 20:12 comment added ott-- Sorry, one < only instead of <<<.
Aug 13, 2015 at 20:01 comment added ott-- I have two shell scripts cmdline and environ, which just do tr '\0' '\n' <<</proc/${pid}/cmdline (figure out the second one).
Aug 13, 2015 at 19:27 history edited MichalH CC BY-SA 3.0
added 48 characters in body
Aug 13, 2015 at 19:15 history edited MichalH CC BY-SA 3.0
added 15 characters in body
Aug 13, 2015 at 18:52 history answered MichalH CC BY-SA 3.0