1#!/bin/ksh93 2 3# 4# Examples to verify bug #15661 - support for new ksh command 5# substitution x=${ cmd ; } 6# 7 8# This should print "hello}" 9echo ${ echo hello};} 10 11# This should print "a b" 12echo ${ 13 echo a 14 echo b;} 15 16# This should print "d e f" 17echo ${ echo d; echo e; 18echo f 19} 20 21# This should print "g h" 22x="${ 23 echo g 24 echo h;}" 25echo $x 26 27# This should print "hi hello" 28x="${ echo hi; echo hello;}" 29echo $x 30 31# This should print "hi hello" 32x="${ echo hi 33echo hello 34}" 35echo $x 36 37# This should print "hello world" 38x="$(echo ${ echo $(echo ${ echo hello ;});}) world" 39echo $x 40 41# This should print "hello world (again)" 42x="${ echo $(echo ${ echo $(echo ${ echo hello ;});}) "world";} (again)" 43echo $x 44 45# This should print "test1 test2 test3" 46x="${ echo test1 47{ 48 echo test2 49} 50echo test3;}" 51echo $x 52