":" as a csh command

Chris Torek chris at mimsy.UUCP
Sun Dec 21 05:42:59 AEST 1986


In article <666 at cullvax.UUCP>, drw at cullvax.UUCP (Dale Worley) writes:
>What does the ':' command to csh do?

It serves to hold a label.  The script

	foo:
	echo foo
	goto foo

prints an infinite number of `foo's.

Note that this is more or less the inverse of the V6 shell's labels:

	: foo
	echo foo
	goto foo

(In the V6 shell, `goto' was a separate program!)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
UUCP:	seismo!mimsy!chris	ARPA/CSNet:	chris at mimsy.umd.edu



More information about the Comp.unix.questions mailing list