Subject: bin/9033: user defined date format only appended to date output
To: None <gnats-bugs@gnats.netbsd.org>
From: Bjoern Labitzke <hermit@cs.tu-berlin.de>
List: netbsd-bugs
Date: 12/20/1999 07:17:11
>Number: 9033
>Category: bin
>Synopsis: user defined date format only appended to date output
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 20 07:15:02 1999
>Last-Modified:
>Originator: Bjoern Labitzke
>Organization:
Bjoern Labitzke <hermit@cs.tu-berlin.de>
Use PGP! (Don't you use envelopes for your letters?)
>Release: -current from 19.12.1999 <NetBSD-current source date>
>Environment:
System: NetBSD hermit.home.cs.tu-berlin.de 1.4P NetBSD 1.4P (LABITZKE) #7: Sun Dec 19 22:49:16 CET 1999 hermit@hermit.home.cs.tu-berlin.de:/usr/src/sys/arch/i386/compile/LABITZKE i386
>Description:
date allows the specification of a user defined format. But instead
of replacing the standard format, the user format is appended to the
standard format. The result is, that both the normal date output and
the user defined output appear.
>How-To-Repeat:
$ date "+%c%m%d %H%M"
Mon Dec 20 16:04:36 19991220 1604
$
>Fix:
No idea. The code seemed okay to a quick look. Perhaps some compiler
optimization that shouldn't occur?
>Audit-Trail:
>Unformatted: