Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.10 $; site uiucdcsb Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcsb!liberte From: liberte@uiucdcsb.CS.UIUC.EDU Newsgroups: net.bugs.4bsd Subject: Csh null strings Message-ID: <6300018@uiucdcsb> Date: Wed, 13-Nov-85 01:46:00 EST Article-I.D.: uiucdcsb.6300018 Posted: Wed Nov 13 01:46:00 1985 Date-Received: Thu, 14-Nov-85 07:13:24 EST Lines: 37 Nf-ID: #N:uiucdcsb:6300018:000:561 Nf-From: uiucdcsb.CS.UIUC.EDU!liberte Nov 13 00:46:00 1985 There are at least two different-sized null strings in csh. But sometimes they are equal anyway. % set x = "" % set y = "`echo`" % echo $#x $#y 1 0 % set x = % set y = `echo` % echo $#x $#y 1 0 % set x = ("") % set y = ("`echo`") % echo $#x $#y 1 0 % set x = () % set y = (`echo`) % echo $#x $#y 0 0 % if (() == "`echo`") echo huh % if (() == ("`echo`")) echo huh huh % if ("" == ("`echo`")) echo huh % if ("" == "`echo`") echo "huh?" huh? Is this what was intended? Dan LaLiberte liberte@uiucdcs.Uiuc.ARPA ihnp4!uiucdcs!liberte