Bsh/tests/functions/declaration_in_if.sh

9 lines
75 B
Bash

if true
then
foo() {
echo 'I am in foo function'
}
fi
foo