Re (And third bug): csh foreach variable can't have dig

Tim Radzykewycz radzy at calma.UUCP
Sat Nov 9 06:18:32 AEST 1985


In article <6300017 at uiucdcsb> liberte at uiucdcsb.CS.UIUC.EDU writes:
>There is at least one other related bug.  
>Csh does not allow numbers in variable names in curly brakets, e.g., 
>
>% set bugs2fix = x
>% echo ${bugs2fix}
>Variable syntax.
>% !!
>echo 2${bugsfix}
>bugsfix: Undefined variable.
>% set bugsfix = " bugs to fix"
>% !echo
>echo 2${bugsfix}
>2 bugs to fix

but:
% set bugs2fix = x
% echo $bugs2fix
x
% echo it works this way

(flames to /dev/null)  There is definitely a bug, but this
may allow some people to use a workaround.
-- 
Tim (radzy) Radzykewycz, The Incredible Radical Cabbage
	calma!radzy at ucbvax.ARPA
	{ucbvax,sun,csd-gould}!calma!radzy



More information about the Comp.bugs.4bsd.ucb-fixes mailing list