29 lines
301 B
Plaintext
29 lines
301 B
Plaintext
|
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
|