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
|
|