diff options
Diffstat (limited to 'static/v10/man1/goto.1')
| -rw-r--r-- | static/v10/man1/goto.1 | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/static/v10/man1/goto.1 b/static/v10/man1/goto.1 new file mode 100644 index 00000000..64feea78 --- /dev/null +++ b/static/v10/man1/goto.1 @@ -0,0 +1,37 @@ +.pa 1 +.he 'GOTO (I)'3/15/72'GOTO (I)' +.ti 0 +NAME goto -- command transfer +.sp +.ti 0 +SYNOPSIS goto____ label +.sp +.ti 0 +DESCRIPTION goto____ +is only allowed when the Shell +is taking commands from a file. +The file is searched (from the beginning) +for a line beginning with ":" followed by one +or more spaces followed by +the label_____. +If such a line is found, the goto____ command returns. +Since the read pointer in the command file points to the +line after the label, +the effect is to cause the Shell to transfer to the +labelled line. + +":" is a do-nothing +command that only serves to place a label. +.sp +.ti 0 +FILES -- +.sp +.ti 0 +SEE ALSO sh(I), :(I) +.sp +.ti 0 +DIAGNOSTICS "goto error", if +the input file is a typewriter; "label not found". +.sp +.ti 0 +BUGS -- |
