沒有名稱空間這樣的東西

myfunc(){
    echo "I will never be executed."
}
another_func(){
    # this "redeclare" overwrites original function
    myfunc(){ echo "I am the one and only"; }
}
# myfunc will print "I will never be executed"
myfunc
# but if we call another_func first
another_func
# it gets overwritten and
myfunc
# no prints "I am the one and only"

最新的宣告獲勝。名稱空間沒有這樣的東西! 但是,函式可以包含其他函式。