I don't know whether this has been reported before but [[ -v
.sh.match[n] ]] always returns false.

Test case:
ksh -c 'x="111 222 333 444 555 666" ; [[ $x == ~(E)(...).(...).(...)
]] ; for ((i=0 ; i < ${#.sh.mat...@]} ; i++ )) ; do m="false" ; [[ -v
.sh.match[i] ]] && m="true" ; printf "%d == %q, %s\n" i
"${.sh.match[i]}" "$m" ; done'
I'd expect this output:
0 == '111 222 333', true
1 == 111, true
2 == 222, true
3 == 333, true

ast-ksh.2011-01-04 however prints false instead of true.

Olga
-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to