以下代碼在CentOS和Ubuntu O/s上按預期工作,但不在紅帽子上。需要做出什麼改變?紅帽兼容性
CentOS版本5.3(最終) Linux操作系統Ubuntu 2.6.24-19泛型#1 SMP星期三06月18 14點43分41秒UTC 2008的i686的GNU/Linux
#!/bin/bash
depot=$1
table=$2
database=$3
combined="$depot$table"
if [ "$table" = 'routes' -o "$table" = 'other_routes' ]; then
echo 'first if successful'
elif [ "$table" = 'bus_stops' ]; then
echo 'elif successful'
else
echo 'else succsesful'
fi
如果你解釋了它的工作原理失敗了,它可能會有幫助嗎?紅帽出了什麼問題? – Glen 2009-09-04 13:11:02