what is the output of
        export | egrep '^(LC_|LANG)'

run the test with 'set -x' after the '#!' line in /tmp/t
and send the stdout and stderr output

On Wed, 29 Jun 2011 05:45:40 -0700 (PDT) Truong Vu wrote:
> We have experience problem in checking for banned characters of certain 
> names.  
> We narrow it down to the combination of two characters that is causing the 
> comparison returns inconsistent result.  Here is the test script

> # cat /tmp/t
> #!/bin/ksh

> typeset bannedChars=']-'

> if [[ "$1" = *+([$bannedChars])* ]]
> then
>   print "Found special char"
> else
>   print "No    special char found"
> fi

> # for i in 1 2 3 4 5 6 7 8 9 10; do /tmp/t stringWithpPand0 ; done
> No    special char found
> No    special char found
> Found special char
> No    special char found
> Found special char
> Found special char
> No    special char found
> No    special char found
> No    special char found
> No    special char found

_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to