From owner-freebsd-arch Mon Jul 3 10:51:35 2000 Delivered-To: freebsd-arch@freebsd.org Received: from grimreaper.grondar.za (grimreaper.grondar.za [196.7.18.138]) by hub.freebsd.org (Postfix) with ESMTP id A4EA737C192 for ; Mon, 3 Jul 2000 10:51:24 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grimreaper.grondar.za (localhost [127.0.0.1]) by grimreaper.grondar.za (8.9.3/8.9.3) with ESMTP id TAA01648; Mon, 3 Jul 2000 19:52:12 +0200 (SAST) (envelope-from mark@grimreaper.grondar.za) Message-Id: <200007031752.TAA01648@grimreaper.grondar.za> To: Sheldon Hearn Cc: arch@FreeBSD.ORG Subject: Re: truncate(1) implementation details References: <30005.962629536@axl.ops.uunet.co.za> In-Reply-To: <30005.962629536@axl.ops.uunet.co.za> ; from Sheldon Hearn "Mon, 03 Jul 2000 15:05:36 +0200." Date: Mon, 03 Jul 2000 19:52:11 +0200 From: Mark Murray Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 "Remove no more than 1024 characters from the end of the file; if the file is shorter than that, set the file length to 0." M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message