On Mon, 13 Nov 2006 16:57:04 +0100 Josh Hurst wrote:
> On 11/7/06, Glenn Fowler <gsf at research.att.com> wrote:
> > > >
> > > > $ (ksh93 "mode='~(E)' ; [[ "hello" == ${mode}.*hello ]] && echo 'bar'")
> > the quoting in this example is wrong
> > ${mode} expands to nothing before ksh93 gets the string to execute
> > ksh -x shows this
> OK
> Could you provide an example which works? I've trying to get it
> working without success since a week :(

$SHELL -c 'mode="~(E)"; [[ hello == ${mode}.*hello ]]; echo $?'


Reply via email to