我有一个如下变量.
variable = This script is not found
if [[ "$variable" = ~ "not found" ]];
then
echo "Not Found"
else
echo "Its there"
if
Run Code Online (Sandbox Code Playgroud)
执行即时通讯低于错误,
line 4: syntax error in conditional expression
./test.sh: line 4: syntax error near `found"'
./test.sh: line 4: `if [[ "$variable" = ~ "not found" ]]; '
Run Code Online (Sandbox Code Playgroud)
谁能指出我,我在这里失踪了什么?