Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
padding.
- X-seq: zsh-users 22443
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: padding.
- Date: Fri, 10 Feb 2017 19:15:14 -0800
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
$ integer -x vvar=-1
$ echo ${(l:5::0:)vvar}
000-1
How do I get "-00005"? But also with the negative not counting as part
of the padding? Or is this a job for printf? It seems to be asking
quite a bit from zsh itself.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author