On Tue, May 15, 2012 at 4:25 PM, ольга крыжановская <
[email protected]> wrote:

> Clark, options -L, -R, -Z always expect a size value to be given. They
> are not auto sizing.
>

Not true. From the ksh manual:

-L[n]   ... If n is non-zero, it defines the width of the
        field, otherwise it is determined by the width of
        the value of first assignment. ...

Example:

$ echo ${.sh.version}
Version JMP 93u+ 2012-05-04
$ typeset -L v=1234
$ typeset -p v
typeset -L 4 v=1234
$

Olga
>
> On Tue, May 15, 2012 at 9:15 AM, Clark WANG <[email protected]> wrote:
> > See following example:
> >
> > $ echo ${.sh.version}
> > Version jM 93u 2011-02-08
> > $
> > $ typeset -L -Z v=1234
> > $ typeset -p v
> > typeset -Z 1 -L 1 v=1    <== ???
> > $
> >
> > I think the result should be `typeset -Z 4 -L 4 v=1234'. `typeset -R -Z
> var'
> > has the same problem.
> >
> > _______________________________________________
> > ast-users mailing list
> > [email protected]
> > https://mailman.research.att.com/mailman/listinfo/ast-users
> >
>
>
>
> --
>       ,   _                                    _   ,
>      { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
> .----'-/`-/     [email protected]   \-`\-'----.
>  `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
>       /\/\     Solaris/BSD//C/C++ programmer   /\/\
>       `--`                                      `--`
>
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to