Reply to post: Re: Stupidest bug ever

Bash bug: Shellshocked yet? You will be ... when this goes WORM

stephanh Silver badge

Re: Stupidest bug ever

Apparently the idea is that you can export a function, like you can export a variable (meaning it gets inherited by subshells). The function body is then communicated through an environment variable.


$ function foo { echo hello, world; }

$ export -f foo

$ tclsh # since bash doesn't show the magic variables...

% set env(foo)

() { echo hello, world


POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019