Bug 231206 - seq considers format "%02d" illegal
seq considers format "%02d" illegal
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: coreutils (Show other bugs)
rawhide
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-06 14:10 EST by Horst H. von Brand
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-03-07 04:06:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Horst H. von Brand 2007-03-06 14:10:43 EST
Description of problem:
'seq --format="%02d" 1 10' errors out

Version-Release number of selected component (if applicable):
coreutils-6.7-9.fc7

How reproducible:
Always

Steps to Reproduce:
1. seq --format="%02d" 1 10
2.
3.
  
Actual results:
seq: invalid format string: `%02d'
Try `seq --help' for more information.

Expected results:
01 02 03 04 05 06 07 08 09 10

Additional info:
Comment 1 Horst H. von Brand 2007-03-06 14:15:04 EST
Oops, sorry, misunderstood the man page and help text.

In any case, just floating point numbers make no sense for seq(1), I've *only*
used it with integers.
Comment 2 Tim Waugh 2007-03-07 04:06:50 EST
%02g is what you want.

Note You need to log in before you can comment on or make changes to this bug.