Just copy/paste that line at a Bash prompt and hit return. If it prints out:
vulnerablethen your Bash has the flaw. OTOH, if it prints out:
this is a test
bash: warning: x: ignoring function definition attemptthen your Bash is safe from this bug.
bash: error importing function definition for `x'
this is a test
... Minus the “prompt$” part, of course. That represents the shell prompt you’re entering the command at.
Thanks ... I suspect you’ve forgotten more about code than I’ll ever know. That said I’m thankful you’re here..
I patched 114 various distributions of Linux systems for this bug and ran that same test today, but I changed the “this is a test part” to “System is not vulnerable.” Too bad I didn’t already have Chef configured... One of these days...