From owner-freebsd-bugs Mon Apr 3 13:26:55 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id NAA18255 for bugs-outgoing; Mon, 3 Apr 1995 13:26:55 -0700 Received: from mail.barrnet.net (MAIL.BARRNET.NET [131.119.245.10]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id NAA18223 for ; Mon, 3 Apr 1995 13:26:49 -0700 Received: from irz301.inf.tu-dresden.de by mail.barrnet.net (8.6.10/BARRNET-Len-Rose) id NAA10212; Mon, 3 Apr 1995 13:25:43 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA13634; Mon, 3 Apr 1995 22:23:32 +0200 Received: by sax.sax.de (8.6.9/8.6.9-s1) with UUCP id WAA22950; Mon, 3 Apr 1995 22:23:31 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id VAA00595; Mon, 3 Apr 1995 21:59:52 +0200 From: J Wunsch Message-Id: <199504031959.VAA00595@uriah.heep.sax.de> Subject: Re: date +format does not emit a newline by default To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Mon, 3 Apr 1995 21:59:51 +0200 (MET DST) Cc: bugs@FreeBSD.org In-Reply-To: <199504031425.QAA09760@labinfo.iet.unipi.it> from "Luigi Rizzo" at Apr 3, 95 04:25:55 pm Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 897 Sender: bugs-owner@FreeBSD.org Precedence: bulk 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 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. ;-)