File:  [Research Unix] / researchv10dc / dist / man / v3 / man1 / goto.1
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.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		--

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.