ChinaUnix.net
相关文章推荐:

shell goto

不知道shell 脚本能否写成类似C里面的goto功能啊 a: # shell script a ........................ if [ ...... ]; then goto a fi # shell script b 请问上面的可行么?谢谢

by gigabyte - Shell - 2008-03-01 15:48:30 阅读(2622) 回复(2)

相关讨论

有一个脚本是这样的 cmd1 cmd2 if [ $? != 0 ] ?????如果cmd2运行错了,就跳过cmd3,直接运行cmd4, 如何实现, shellgoto or lable什么功能吗 跳到cmd4运行。 fi cmd3 cmd4

by huanghaojie - Shell - 2009-02-05 00:52:21 阅读(6253) 回复(18)

请问shell 中到底有没有 goto 语句?? :?: 该怎么用?或者有没有类似的功能语句

by 彦毅松 - Shell - 2004-05-20 12:25:48 阅读(1725) 回复(2)
by qqq - 其他UNIX - 2003-07-20 10:35:44 阅读(930) 回复(4)
by lozity - Shell - 2005-02-26 16:03:47 阅读(5261) 回复(13)

实在不明白goto #include int main(void) {         int i=0;         int j=1;         if(i)                 if(j > 10)             ...

by FinalBSD - C/C++ - 2009-03-19 12:03:59 阅读(1874) 回复(8)

*QRG7047 THE goto BRANCHES FROM DETAIL THE CALCULATION TO THE subtine calculation specification ignored. :send target of detail goto or cabxx is inside subroutine. [code]...... goto send ........ ...... SEND TAG SETON LR 请帮忙提示哪里会有问题?? [/code]

by hliu - AS400 - 2004-10-14 21:24:37 阅读(1054) 回复(3)

还是能解决大问题的 。。。

by snow888 - C/C++ - 2009-08-16 00:31:36 阅读(3287) 回复(21)
by wawxdyy - Shell - 2008-08-21 17:06:40 阅读(1479) 回复(1)

要实现goto的效果该怎么办呢? 效果就和c语言中的goto一样。就是直接跳过一段代码执行。要求不用到{} 用到的地方 start(); code... $cache->end(); code... ?> function start() { code... if($cache) goto end; } function end() { end code... } 就是在类中实现一个部分缓存的东西,如果已经缓存好了,就跳过中间代码,直接到end部分,然后处理显示。 如果你们有什么好办法,不妨共享下。 好象我这...

by rendong237 - PHP - 2006-09-19 11:46:33 阅读(7915) 回复(10)
by freesea - Perl - 2012-09-16 12:23:09 阅读(14736) 回复(4)