以下代码在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