zsh-users
 help / color / mirror / code / Atom feed
* padding.
@ 2017-02-11  3:15 Ray Andrews
  2017-02-11 19:04 ` padding Bart Schaefer
  0 siblings, 1 reply; 10+ messages in thread
From: Ray Andrews @ 2017-02-11  3:15 UTC (permalink / raw)
  To: Zsh Users

$ 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.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-02-14  5:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <0befdb38-eaa5-6388-a3fe-58b1a73834b7__26816.8318471455$1486784821$gmane$org@eastlink.ca>
2017-02-11  6:29 ` padding Daniel Shahaf
2017-02-11 18:43   ` padding Ray Andrews
2017-02-11  3:15 padding Ray Andrews
2017-02-11 19:04 ` padding Bart Schaefer
2017-02-12  1:54   ` padding Ray Andrews
2017-02-12  2:11     ` padding Ray Andrews
     [not found]   ` <ee3c8ad2-41e3-f3e4-9347-d6e395b85d8e__47549.2452657365$1486864527$gmane$org@eastlink.ca>
2017-02-12  6:14     ` padding Daniel Shahaf
2017-02-12 20:10       ` padding Ray Andrews
2017-02-13 21:58       ` padding Ray Andrews
     [not found]         ` <CAHYJk3SKvOSOBgK6GTVnbqL1mJ7mnwchoAbVKjjNRE8FjFWNYQ@mail.gmail.com>
2017-02-14  5:51           ` padding Ray Andrews

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).