C-Shell weirdness

jpn at teddy.UUCP jpn at teddy.UUCP
Fri Mar 28 21:31:07 AEST 1986


>> set hosed
>> echo $#hosed
>> 
>> THEN you will get 0.
>
>Small problem: on my system (Ultrix 32m 1.1) the above gives 1, not 0.

Uh, all csh variables (except argv) will always have ONE element unless you
used the set notation when setting their value.  The way to create a variable
with zero elements is:

set hosed = ()



More information about the Comp.unix.wizards mailing list