Subject: Re: ksh93 bug report 
--------

> Just tripped over this bug in a recent version of ksh on linux.
>  
> #!/bin/ksh
> if [[ $* = "x y z" ]] ;then
>    echo in dot file
>    export var1=fred
>    return 0
> fi
> doit() {
>    unset var1
>    . $0 x y z
>    export | grep var1
>    /usr/bin/perl -e 'print "2 <$ENV{var1}>\n"'
> }
> if [[ $var1 = "" ]] ;then
>    echo call like this: var1=bob $0
>    exit 1
> fi
> /bin/ksh --version </dev/null 2>&1 | /bin/cat 
> /bin/uname -a
> /usr/bin/perl -e 'print "1 <$ENV{var1}>\n"'
> ( doit )
> exit 0      # this line is required to show bug
> 
> When I run it, I get this output:
>  
> $ var1=bob ./bug.sh
>   version         sh (AT&T Research) 93t+ 2009-05-01
> Linux thmdtdev15 2.6.9-67.ELlargesmp #1 SMP Wed Nov 7 14:07:22 EST 2007
> x86_64 x86_64 x86_64 GNU/Linux
> 1 <bob>
> in dot file
> var1=fred
> 2 <>             # where did it go?
> 
>  

Thanks, this was a bug and the fix will be in the next update.

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

Reply via email to