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

Greg Woods woods at hao.UUCP
Sat Mar 29 12:13:08 AEST 1986


> No, there is a way to get a C shell variable with zero words:
>   set hosed = ()
> Counterintuitive is relative -- this was obvous to me; but then, I wasn't
> trying to do it, it was an accidential side-effect of doing:
>   set something = (`some command`)
>   if $#something ......

  Well, I still think Steve Dunn's postings were more whiny than was necessary,
but I'm glad he posted them anyway, because now I've learned something about
a program that I use extensively that I didn't know before.

--Greg



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