Xref: utzoo comp.unix.wizards:23533 comp.unix.questions:24839 Path: utzoo!utgpu!watserv1!watmath!att!cbnews!mvadh From: mvadh@cbnews.att.com (andrew.d.hay) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: evaluating ${10} and above in sh/ksh Message-ID: <1990Aug14.112611.15273@cbnews.att.com> Date: 14 Aug 90 11:26:11 GMT References: <514@risky.Convergent.COM> <7300@star.cs.vu.nl> Organization: AT&T Bell Laboratories Lines: 14 In article <514@risky.Convergent.COM>, chrisb@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@att.com +------------------------------------------------------+