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

padding.



$ 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