Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!tgr!ucscc!argv@ucb-vax.ARPA From: argv@ucb-vax.ARPA Newsgroups: net.unix-wizards Subject: more on csh quirks Message-ID: <9845@brl-tgr.ARPA> Date: Wed, 10-Apr-85 08:38:38 EST Article-I.D.: brl-tgr.9845 Posted: Wed Apr 10 08:38:38 1985 Date-Received: Fri, 12-Apr-85 06:13:29 EST Sender: news@brl-tgr.ARPA Lines: 22 set foo = $< if the user types "foo bar" then if($foo == "something") etc.. will die with an "expression syntax" because of the space. I thought, perhaps, that if the shell parsed the "foo" and "bar" into two separate tokens, I should be able to access $foo[0] and $foo[1] and get "foo" and "bar" respectively. This also is not the case. echo $foo[0] gives: foo bar AAAAARRRRRGGGGGGv Dan Heller (aka Frank) ucbvax!ucscc!argv {ihnp4,sun,cbosgd,decwrl}!qubix!ucscc!argv