判断匹配的shell类型

比特猪
判断匹配的shell类型

[code]
#! /bin/bash
echo "input your use shell(eg:bash,kash,sh,csh):"
read sh
while [ "$sh" != [[abck]sh] ]
do
echo "this shell is nonsupport!reply input:"
read sh
done
[/code]

以上此段是小弟写的为了实现判断输入的是否合法的shell。但是一直错误的循环,例如我输入了bash它还是显示“this shell is nonsupport!reply input”

请高人指点。

MMMIX
再仔细看看 test 的文档。