We are trying to get typeset -m to work on the .sh.match array but get
wrong results.
An example:
We do pattern matching (repeated) with ${x//} and use typeset -m to
save the results:
ksh -c 'x="1234" ; true "${x//~(X)([012])|([345])/ }" ; compound co ;
typeset -m co.array=.sh.match ; print -v co'
I would expect this output:
(
typeset -a array=(
(
[0]=1
[1]=2
[2]=3
[3]=4
)
(
[0]=1
[1]=2
)
(
[2]=3
[3]=4
)
)
)
But ksh u+ (20120801) will print this:
(
typeset -a array=(
(
[0]=1
[1]=2
[2]=3
[3]=4
)
(
[0]=1
[1]=2
[2]=3
[3]=4
)
(
[0]=1
[1]=2
[2]=3
[3]=4
)
)
)
Is this is bug or am I doing something wrong?
Ced
--
Cedric Blancher <[email protected]>
Institute Pasteur
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users