On Mon, Jan 23, 2023 at 10:27 AM Bart Schaefer wrote: > > array local left justified 10 zero filled 10 uppercase tagged unique > tied FOO foo > > (plus export, hide, and hideval, which typeset +m does not display) Minor correction: typeset +m does output "exported" for scalars, but not for arrays even when tied to an exported scalar. > Pondering. I've reached the conclusion that "local" makes no difference here. If any calling scope has declared the parameter local, it will remain local to that scope even if unset, and the dynamic scope behavior of "typeset -g" from inside "untie" will apply to the variable in that scope. Also, per the other thread, there's no way to get the justification width for -L/-R/-Z without using typeset +m so that's what I've done. Since -L and -Z may be specified together, I've made two calls to typeset +m, the gyrations to reduce it to a single call seemed even more confusing than the hoops necessary to shuffle all the switches through the positional parameters. Attached this time because I'm sure gmail would maim it. This has been tested with convoluted cases, but not with simple ones, so it may still need refinement.