From owner-freebsd-arch Mon Jul 3 6:45:43 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 DAA4C37B5B7 for ; Mon, 3 Jul 2000 06:45:37 -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 1396XQ-00080p-00; Mon, 03 Jul 2000 15:45:28 +0200 From: Sheldon Hearn To: James Howard Cc: arch@FreeBSD.ORG Subject: Re: truncate(1) implementation details In-reply-to: Your message of "Mon, 03 Jul 2000 09:42:03 -0400." Date: Mon, 03 Jul 2000 15:45:28 +0200 Message-ID: <30802.962631928@axl.ops.uunet.co.za> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 03 Jul 2000 09:42:03 -0400, James Howard wrote: > Then the size should merely be the first argument. For instance, it isn't > > chmod -0666 foo > > But instead, > > chmod 0666 foo Um, that's exactly what I'm proposing: truncate -c -1024 nonexistant_file That means lop off 1024 bytes of the file, creating it if it doesn't exist. I used that as an example, but I see now that it was a bad one. The tool won't introduce the size with an option. It'll be a required argument. You agree that this is "normal"? Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message