evaluating ${10} and above in sh/ksh

andrew.d.hay mvadh at cbnews.att.com
Tue Aug 14 21:26:11 AEST 1990


In article <514 at risky.Convergent.COM>,
	chrisb at risky.Convergent.COM (Chris Bertin) writes:
"There doesn't seem to be a way, in sh or ksh, to evaluate $10 and higher.
"$10 and higher are evaluated as ${1}0, ${1}1, etc...
"		     instead of ${10}, ${11}, etc...

in ksh88, ${10}, ${11}, etc. are evaluated correctly, but YOU MUST
BRACE THE ARGUMENTS!  $10 and $11 are evaluated as you experienced.

-- 
Andrew Hay		+------------------------------------------------------+
Ragged Individualist	| 	You just have _N_O idea!  It's the difference    |
AT&T-BL Ward Hill MA	|	between _S_H_O_O_T_I_N_G a bullet and _T_H_R_O_W_I_N_G it!     |
a.d.hay at att.com		+------------------------------------------------------+



More information about the Comp.unix.questions mailing list