To give you the best experience, this site uses cookies. Continuing to use 9bis.net means you agree to our use of cookies.
 

 

goto ( en )

Last modification : 2013/01/26 19:16

goto command is used ... to go to a specific label. A label is a word beginning by the : character. It must be the lonely word on its line.
goto has no sense in interactive shell, it must only be used in external script.

This script
print The Beginning
goto end
print The middle
:end
	print The end

will produce
The Beginning
The end