If n is omitted, the return status is that of the last command executed. The goto built-in uses a specified label as a search string amongst commands.
Execution continues after the indicated line.
It is an error to jump to a label that occurs between a while or for built-in command and its corresponding end. The value will be the least significant 8 bits of the specified status. If n is omitted then the exit status is that of the last command executed. When exit occurs when executing a trap, the last command refers to the command that executed before the trap was invoked. The value will be the least significant 8 bits of the speci- fied status.