Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 1995 21:59:51 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        luigi@labinfo.iet.unipi.it (Luigi Rizzo)
Cc:        bugs@FreeBSD.org
Subject:   Re: date +format does not emit a newline by default
Message-ID:  <199504031959.VAA00595@uriah.heep.sax.de>
In-Reply-To: <199504031425.QAA09760@labinfo.iet.unipi.it> from "Luigi Rizzo" at Apr 3, 95 04:25:55 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Luigi Rizzo wrote:
> 
> Not sure if this is conforming with POSIX, but if you specify a format
> string to "date", the snap950210 version will not emit a newline by
> default. This deviates from the behaviour of 1.1.x and of most Unixes I
> have used, and might break some user scripts.

Thank you.  It's definately wrong.  Here's the Posix part on this:

 4.15.4  Operands

 When the format is specified, each field descriptor shall be replaced in
 the standard output by its corresponding value.  All other characters
 shall be copied to the output without change.  The output shall be always
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
 terminated with a <newline> character.
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504031959.VAA00595>