Bug 58977 - data +%k returns leading space for values 0-9
Summary: data +%k returns leading space for values 0-9
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: sh-utils   
(Show other bugs)
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Ben Levenson
URL:
Whiteboard:
Keywords:
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:
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: ---


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.