tcsh script: quote and spaces problems

Dan Nelson dnelson at allantgroup.com
Thu Jul 31 20:30:52 PDT 2003


In the last episode (Aug 01), Rob Lahaye said:
> Another odd behaviour occurs when I say:
> 
>   set foo="a    b            c"
> 
> which tcsh reduces to "a b c", despite the quotes.

This works for me (-CURRENT).

$ tcsh
dan: {3001} set foo="a    b            c"
dan: {3002} set | grep foo
_       set foo="a    b            c"
foo     a    b            c
dan: {3003} echo "$foo"
a    b            c
dan: {3004} 
 
-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list