More C-shell weirdness [Another word count problem]

Steve Dunn nose at nbires.UUCP
Tue Apr 1 08:02:35 AEST 1986


And now for another issue of "Can you explain this" from
whinin' Steve Dunn.

This:
set a = ''
set a = ($a '')
echo $#a

Yields 1

But this:

set a = ('' '')
echo $#a

Yields 2

This curious behavior has not actually caused me any trouble but I
am a bit puzzled


	         -Steve "Grep-face" Dunn



More information about the Comp.unix.wizards mailing list