PS1="Shellshock : "
$ foo='() { echo "running function foo"; }' $ export foo
$ bar(){ echo "Hello from bar"; } $ export bar
$ foo
printenv
$ bug='() { echo "not the bug"; }; echo "The bug"' $ export bug
printenv bug
$ /bin/bash_shellshock BUG! $
bug
routine is stored as a function definition along with the extra code.
};
variables.c
in the shellShock directory