Hello,

    $ function f { typeset +x x; typeset x=123; echo "$x"; sh -c 'echo "$x"'; 
}; x=abc f
    123
    abc
    $ echo "$BASH_VERSION"
    4.2.45(1)-release

This is inconsistent with a variable defined and exported any other way. 
(ksh93/mksh/zsh don't have this issue. Dash doesn't actually export the 
variable to the environment in this case, but just "localizes" it, and requires 
a separate export.)

-- 
Dan Douglas

Reply via email to