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