csh pleasures

Thorsten von Eicken tve at sprite.berkeley.edu
Fri Feb 8 04:52:51 AEST 1991


Question: what does the following c-shell script print out?
Anybody care defending?

	#!/bin/csh -f
	set a=0
	set b=1
	if($a) then
		if($b) then
			echo one
		else
			echo two
		endif
	else
		echo three
	endif

Thorsten von Eicken - tve at sprite.berkeley.edu



More information about the Comp.unix.wizards mailing list