Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site hao.UUCP Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!hplabs!hao!woods From: woods@hao.UUCP (Greg Woods) Newsgroups: net.unix-wizards,net.bugs.4bsd Subject: Re: C-Shell weirdness (count of words in a variable) Message-ID: <2031@hao.UUCP> Date: Fri, 28-Mar-86 21:13:08 EST Article-I.D.: hao.2031 Posted: Fri Mar 28 21:13:08 1986 Date-Received: Sun, 30-Mar-86 02:45:30 EST References: <676@nbires.UUCP> <2021@hao.UUCP> <678@nbires.UUCP> <2024@hao.UUCP> <434@ncr-sd.UUCP> Organization: High Altitude Obs./NCAR, Boulder CO Lines: 12 Xref: watmath net.unix-wizards:17383 net.bugs.4bsd:2020 > 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