In case you want to test for ShellSheck https://suite.websecurify.com/market/shellshock
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
This should be displayed: bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
this is a testNOPE