From owner-freebsd-arch Mon Jul 3 7:38: 9 2000 Delivered-To: freebsd-arch@freebsd.org Received: from axl.ops.uunet.co.za (axl.ops.uunet.co.za [196.31.2.163]) by hub.freebsd.org (Postfix) with ESMTP id 8E00337B88C for ; Mon, 3 Jul 2000 07:38:05 -0700 (PDT) (envelope-from sheldonh@axl.ops.uunet.co.za) Received: from sheldonh (helo=axl.ops.uunet.co.za) by axl.ops.uunet.co.za with local-esmtp (Exim 3.13 #1) id 1397Lo-0008Rp-00; Mon, 03 Jul 2000 16:37:32 +0200 From: Sheldon Hearn To: Ben Smithurst Cc: arch@FreeBSD.org Subject: Re: truncate(1) implementation details In-reply-to: Your message of "Mon, 03 Jul 2000 14:37:16 +0100." <20000703143716.V48373@strontium.scientia.demon.co.uk> Date: Mon, 03 Jul 2000 16:37:32 +0200 Message-ID: <32476.962635052@axl.ops.uunet.co.za> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 03 Jul 2000 14:37:16 +0100, Ben Smithurst wrote: > I agree with alex that it should create files iff -c (or something) > is given on the command line, and the default should be NOT to create > anything. Cool. That seems to be agreed all around. So we've got: truncate [-cv] [+|-]size file [...] -c Create files as necessary -v Warn about attempts to truncate below zero bytes where + and - turn the size argument into a delta to be applied, rather than an absolute size. Any objections to this interface? Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message