摘要:
1、未设置就临时替换(:-) 冒号:用来检验变量是否设置过,如果没有冒号,则认为设置过,不替换$fruit=peach$echo ${fruit:-plum}peach $fruit=$echo ${fruit:-plum}plum $echo $fruit$ 2、未设置就永久替换(:=) $nam 阅读全文
posted @ 2015-06-21 13:32
chenxiaopang
阅读(255)
评论(0)
推荐(0)

浙公网安备 33010602011771号