My .bashrc
file exports a function called lookup
:
lookup() {
grep -r -ne "$1" * | grep -v "TAGS:" | grep -v "tags:"
}
export -f lookup
I can use that function in a shell. But if I put it in a script like this:
#!/bin/bash
lookup "foo"
and run the script then bash reports "command not found" for lookup
. This used to work some time ago. I strongly suspect this is stopped working after a security update of bash on my system (possibly related to shellshock/bashdoor?) My bash version is 4.1.10(1) on openSUSE 11.4