[问题]新手提问简单的问题
发表于 : 2007-02-01 16:59
#!/bin/bash
strvar="hello"
#定义一个字符串变量
if [${strvar} = "he"] 是否与he相等
then
echo correct
else
echo wrong
fi
运行的时候出现了这个错误是怎么回事啊?
[he: command not found
strvar="hello"
#定义一个字符串变量
if [${strvar} = "he"] 是否与he相等
then
echo correct
else
echo wrong
fi
运行的时候出现了这个错误是怎么回事啊?
[he: command not found