Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 58977

Summary: data +%k returns leading space for values 0-9
Product: [Retired] Red Hat Raw Hide Reporter: Jaroslaw Sosnicki <slavko>
Component: sh-utilsAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: slavko
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-01-28 20:22:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.