Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!decvax!tektronix!reed!kab From: kab@reed.UUCP (Kent Black) Newsgroups: comp.unix.questions Subject: Re: ":" as a csh command Message-ID: <4998@reed.UUCP> Date: Fri, 2-Jan-87 13:41:11 EST Article-I.D.: reed.4998 Posted: Fri Jan 2 13:41:11 1987 Date-Received: Sat, 3-Jan-87 02:43:23 EST References: <666@cullvax.UUCP> <148@piaget.UUCP> <5576@cbrma.att.com> Reply-To: kab@reed.UUCP (Kent Black) Organization: Reed College, Portland, OR Lines: 24 In article <5576@cbrma.att.com> karl@cbrma.att.com (Karl Kleinpaste) writes: > > `:' is used to specify labels in scripts, as in > if ($?some_variable) goto label > commands to skip if some_variable exists > label: > more commands > When typed at an interactive prompt, it's a no-op. But try typing > "goto there" at an interactive prompt; csh will keep reading lines and > doing absolutely nothing with them whatever until you type a line > which says "there:" and nothing else. > -- > Karl Or, try typing % foo: % echo hi % goto foo Oh boy, high level control structures in an interactive shell ;-) (4.3 (mt. xinu) on VAX/785 in case it doesn't work) -- kab