由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 提示我 too many ('s 怎么办?
相关主题
不好意思,问个问题有关Unix shell script的问题
看看我的第一个小script为什么不工作how to convert csh shell script to dos batch file
a puzzle!!Need urgent help on a samll shell script problem!
Consult to perl expert[转载] Re: shell script question
[转载] 再请教高手How to use file modifiers in bash/sh
question about Makefileperl , ssi 问题
a painful problemOne shell question
shell script help?how to get the backgroup run state?
相关话题的讨论汇总
话题: script话题: echo话题: csh话题: mkdir
进入Unix版参与讨论
1 (共1页)
GB
发帖数: 256
1
我用csh 执行一个script文件,结果总是被告诉
too many ('s
不知道为什么怎么处理?
哪位有经验,帮一下,多谢.
x*********g
发帖数: 11508
2
Could you paste the first line of the script file here?

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

GB
发帖数: 256
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?
GB
发帖数: 256
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?
q***e
发帖数: 90
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

1 (共1页)
进入Unix版参与讨论
相关主题
how to get the backgroup run state?[转载] 再请教高手
Shell script求教question about Makefile
新手求助shell scripta painful problem
新手unix shell script debugging help!shell script help?
不好意思,问个问题有关Unix shell script的问题
看看我的第一个小script为什么不工作how to convert csh shell script to dos batch file
a puzzle!!Need urgent help on a samll shell script problem!
Consult to perl expert[转载] Re: shell script question
相关话题的讨论汇总
话题: script话题: echo话题: csh话题: mkdir