C-Shell weirdness (count of words in a variable)

Chris Torek chris at umcp-cs.UUCP
Fri Mar 28 12:30:07 AEST 1986


In article <2024 at hao.UUCP> woods at hao.UUCP writes:

>It seems that $#var is either an error or a positive integer.

Not so:

	% set foo
	% echo $#foo
	1
	% set foo=()
	% echo $#foo
	0
	%
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1415)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at mimsy.umd.edu



More information about the Comp.bugs.4bsd.ucb-fixes mailing list