more on csh quirks

argv at ucb-vax.ARPA argv at ucb-vax.ARPA
Wed Apr 10 23:38:38 AEST 1985


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



More information about the Comp.unix.wizards mailing list