blob: 2cc0970e8732954ecac038309b5b05e3ba2f1fcb [file] [log] [blame]
function f() { echo $1; }
f 1
function f() ( echo $1; )
f 2
function f() ( echo $1 )
f 3
function f() for i in 1 2 3; do
echo $i
done
f
function f { echo $1; }
f 1
# the next two don't work
#function f ( echo $1; )
f 2
#function f ( echo $1 )
f 3
function f for i in 1 2 3; do
echo $i
done
f