【发布时间】:2019-08-31 04:55:08
【问题描述】:
我试图在 c-shell 中执行这个 if 语句,但是语法有问题导致它不起作用
if(grep "hello" $HOME/file) then
echo "I am here"
endif
if(grep "hello" $HOME/file) then echo "I am here" end if
if: Expression Syntax.
【问题讨论】:
-
end和if之间有一个空格;也许这就是问题所在?
标签: csh