Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: A way to untie -T vars?



On Wed, Jan 25, 2023 at 2:39 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> The justification for -L/-R/-Z when not specified is intuited
> from the value assigned to the variable, not inherited

Ah ha ha.  Ha ha.  Ha.

The value being assigned to the variable is coming from $1=${(P)1} and
${(P)1} includes the specified justification, so the value assigned is
always already the correct width.

The main issue with this would be for zero-filling when referenced in
math context with OCTAL_ZEROES.  Is there any other way to reference
the "real, unfilled" value of a parameter that has justification
specified?  The latter would need to be used in the untie function
itself, if possible.




Messages sorted by: Reverse Date, Date, Thread, Author