On 10/02/17 10:29 PM, Daniel Shahaf wrote:
% integer x % echo ${(l:5::x:)x} xxxx0 So, yes, use printf %05d.