From owner-freebsd-arch Sat Jul 8 9:29:13 2000 Delivered-To: freebsd-arch@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 8831037C090 for ; Sat, 8 Jul 2000 09:29:06 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p18-dn03kiryunisiki.gunma.ocn.ne.jp [210.232.224.147]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id BAA07975; Sun, 9 Jul 2000 01:28:45 +0900 (JST) Message-ID: <396756DD.2235FC7C@newsguy.com> Date: Sun, 09 Jul 2000 01:29:17 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: Sheldon Hearn Cc: James Howard , arch@FreeBSD.ORG Subject: Re: truncate(1) implementation details References: <30005.962629536@axl.ops.uunet.co.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sheldon Hearn wrote: > > On Mon, 03 Jul 2000 09:01:20 -0400, James Howard wrote: > > > It would make sense to have it follow the semantics of the system call and > > then add a -c to create if nonexistent as Langer suggested. > > I'm convinced, but it introduces a problem. Given that it looks like > we'll allow '+' or '-' to be prepended to the size argument to allow > size changes rather than absolute sizes, what does this mean: > > truncate -c -1024 nonexistant_file Means a syntax error. truncate -c -- -1024 nonexistant_file Though, really, what you posted is non-ambiguous, and easy to parse. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.great.underground.bsdconpiracy.org _DES: The Book of Bruce has only one sentence in it, and it says "the actual directives of my cult are left as an exercise for the reader. Good luck." jkh: does it really include the 'good luck' part? EE: OK, I made that part up. EE: I figured it should sound a bit more cheery than how Bruce initially dictated it to me. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message