Bsh/tests/functions/declaration_in_if.sh

9 lines
75 B
Bash
Raw Normal View History

2022-02-08 17:50:03 +00:00
if true
then
foo() {
echo 'I am in foo function'
}
fi
foo