peter@sugar.hackercorp.com (Peter da Silva) (11/22/89)
I complained about using $(cmd) rather than `cmd`. In article <4926@cbnewsc.ATT.COM> sft@cbnewsc.ATT.COM (scott.thompson,ihp,) writes: > Both are real unix! $(prog) is valid ksh syntax! I don't think so: /usr/peter/News/232 $ echo $(echo hi) ksh: syntax error: `(' unexpected -- Peter "Have you hugged your wolf today" da Silva <peter@sugar.hackercorp.com> `-_-' 'U` "Really, that tedious net etiquette stuff simply can't be expected to apply to an _Author_" -- Peter Merel <pete@basser.oz>
lbl@cbnewsl.ATT.COM (leslie.b.locklear) (11/29/89)
In article <4587@sugar.hackercorp.com>, peter@sugar.hackercorp.com (Peter da Silva) writes: ) I complained about using $(cmd) rather than `cmd`. ) ) In article <4926@cbnewsc.ATT.COM> sft@cbnewsc.ATT.COM (scott.thompson,ihp,) writes: ) > Both are real unix! $(prog) is valid ksh syntax! ) ) I don't think so: ) ) /usr/peter/News/232 $ echo $(echo hi) ) ksh: syntax error: `(' unexpected ) -- ) Peter "Have you hugged your wolf today" da Silva <peter@sugar.hackercorp.com> ) `-_-' ) 'U` "Really, that tedious net etiquette stuff simply can't be expected ) to apply to an _Author_" -- Peter Merel <pete@basser.oz> Hmmmm.... That's interesting! When I try it I get: 1:[amiga] echo $(echo hi) hi 1:[amiga] echo $SHELL /usr/lbin/ksh Perhaps you have an earlier version of ksh? Barry Locklear <lbl@sf.att.com>