例 32.7. Functions with parameters sample
#!/bin/bash function quit { exit } function e { echo $1 } e Hello e World quit echo foo
#!/bin/bash HELLO=Hello function hello { local HELLO=World echo $HELLO } echo $HELLO hello echo $HELLO