Bug 58977 - data +%k returns leading space for values 0-9
Summary: data +%k returns leading space for values 0-9
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: sh-utils
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-28 20:22 UTC by Jaroslaw Sosnicki
Modified: 2007-04-18 16:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-01-28 20:22:34 UTC
Embargoed:


Attachments (Terms of Use)

Description Jaroslaw Sosnicki 2002-01-28 20:22:29 UTC
Description of Problem:
data +%k returns leading space for hours 0-9
i.e date +%M%k for k=0-9 should return '029'
it returns '02 9' 

When used in file creation base on timestamp it fails since introduces unquoted
 blank space in file name

Version-Release number of selected component (if applicable):
sh-utils-2.0.11-9

How Reproducible:


Steps to Reproduce:
1. 
2. 
3. 

Actual Results:


Expected Results:


Additional Information:

Comment 1 Bernhard Rosenkraenzer 2002-01-31 14:06:36 UTC
+%k is supposed to do just that. You probably want to use +%H instead.


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