1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
t1() { xxx="echo $@" recho "$xxx ; echo $@" } t2() { xxx="echo $@" recho "${xxx} ; echo $@" } t1 1 t1 1 2 t2 1 t2 1 2