csh and tset

dove at mit-dspg dove at mit-dspg
Thu Sep 16 18:13:33 AEST 1982


From: dove at mit-dspg at mit-mc
My mistake.  The in csh, you must say "set noglob" outside of the
eval `tset -s`.  I had thought that the noglob generated by tset would
take care of it.  Apparently however, the sh passes '[' within single
quotes 

echo `echo 'a[b'`

returns

a[b

in csh that gets an "missing [" message unless noglob is set.
On the other hand in csh

echo 'a[b'

with noglob unset works fine, returning

a[b

Does anyone understand why it would parse the 'a[b' differently when
it was being passed in the first case?  Are the ' being stripped of by
the first parsing causing the cmd line 'echo a[b' to be executed?




More information about the Comp.bugs.2bsd mailing list