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

Re: typeset for integers



On Sunday 05 June 2005 23:28, Justin M Wozniak wrote:
> Is there a way to get internal integer performance combined with leading
> zero output?  I.e., for typeset to combine -Z & -i ?

Do you mean this?

pts/2}% typeset -i 10 -Z 5 i
{pts/2}% echo $i
00005
{pts/2}% i=17
{pts/2}% echo $i
00017

-andrey

Attachment: pgprDvgyU4Bjf.pgp
Description: PGP signature



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