avatar
提示我 too many ('s 怎么办?# Unix - 噫吁兮,危乎高哉
GB
1
我用csh 执行一个script文件,结果总是被告诉
too many ('s
不知道为什么怎么处理?
哪位有经验,帮一下,多谢.
avatar
x*g
2
Could you paste the first line of the script file here?

【在 GB 的大作中提到】
: 我用csh 执行一个script文件,结果总是被告诉
: too many ('s
: 不知道为什么怎么处理?
: 哪位有经验,帮一下,多谢.

avatar
GB
3
sure.
in this csh script file.
some comment lines at the beginning,
then some 'set' and 'echo' stuff ,
then
if (! -d $roccSysInstallRootDir) then
echo "mkdir $roccSysInstallRootDir"
mkdir $roccSysInstallRootDir
endif
if (! -d $roccSysInstallRootDir) then
echo "You don't have right!\n"
exit
endif
blablablabla,,,,,,,,,,

【在 x*********g 的大作中提到】
: Could you paste the first line of the script file here?
avatar
GB
4
when I open a new terminal, here's the message:
Last login: Tue May 17 14:14:32 on console
Welcome to Darwin!
csh: Bad : modifier in $ (/).
is this correct?

【在 x*********g 的大作中提到】
: Could you paste the first line of the script file here?
avatar
q*e
5
Faint, do you know shell script at all? Consult a book about
the meaning of () in shell script.
I don't know for sure what you want, but I guess you want to
substitute [] for (), at least this way it eliminates your
syntax error.

【在 GB 的大作中提到】
: sure.
: in this csh script file.
: some comment lines at the beginning,
: then some 'set' and 'echo' stuff ,
: then
: if (! -d $roccSysInstallRootDir) then
: echo "mkdir $roccSysInstallRootDir"
: mkdir $roccSysInstallRootDir
: endif
: if (! -d $roccSysInstallRootDir) then

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。