date command produces trailing space from %d format sequence from latest coreutils package in lucid.

Bug #860013 reported by B. D.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
coreutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

The %d format sequence used in date from coreutils version 7.4-2ubuntu2 did not output a trailing space, however in version 7.4-2ubuntu3 the %d format sequence outputs a trailing space.

It may be that the change was deliberate, however, the man page has not changed.

1)
Description: Ubuntu 10.04.3 LTS
Release: 10.04

2)
7.4-2ubuntu3

3)
I believe the %d format sequence should output a 2 digit day of the month
Man page excerpt
"%d day of month (e.g, 01)"
e.g. "01"

4)
A script of mine relied on the old behavior, such that a command stopped working which revealed the trailing space to me.
e.g. "01 "

Tags: date
B. D. (polytopal)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.