看板Linux
标 题Re: [问题] 挑战Solaris下写程式
发信站SayYA 资讯站 (Mon May 26 13:04:03 2008)
转信站ptt!ctu-reader!ctu-peer!news.nctu!News.Math.NCTU!SayYa
※ 引述《[email protected] (快乐社会中꼩》之铭言:
> ※ 引述《[email protected] (小州)》之铭言:
> : 不大懂你的问题,你的 code 无法在你的 solaris 用 bash 执行吗 ?
> : 另外 while (true) 在 bash 内改成 while true 或者是 while : 就可以了。
> ----------------------------------------------------------------------------
> 是的,在Solaris的Terminal无法执行cptest.sh
> 改写while (true) => while true ------> 也无法执行
> while (true) => while: ------> 也无法执行
> 它都会显示cannot execute
这位朋友,这是 shell script 基本上不大会显示所谓 cannot execute
这种讯息。
感觉上您应该弄错啥东西,或者是你根本不是使用 sh or bash shell
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
现代人普遍的现象: 「小学而大遗」、「舍本而逐末」
「以偏而概全」、「因噎而废食」
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: kendlee.sayya.org