0
#!/bin/sh
[ -f /etc/init.d/functions ] && . /etc/init.d/functions
[ 0 -eq 0 ] && action "Test" /bin/false || action "Test" /bin/true
echo "###############"
[ 0 -eq 0 ] && action "Test" /bin/true || action "Test" /bin/false
結果是:
Test [FAILED]
Test [ OK ]
###############
Test [ OK ]
不動作/斌/假函數返回錯誤值,使在||之後的聲明被執行? 如果我必須把/斌/假的「& &」塊,做