From owner-freebsd-arch Mon Jul 3 6:10:46 2000 Delivered-To: freebsd-arch@freebsd.org Received: from po4.glue.umd.edu (po4.glue.umd.edu [128.8.10.124]) by hub.freebsd.org (Postfix) with ESMTP id 2325037BC85 for ; Mon, 3 Jul 2000 06:10:43 -0700 (PDT) (envelope-from howardjp@glue.umd.edu) Received: from y.glue.umd.edu (root@y.glue.umd.edu [128.8.10.68]) by po4.glue.umd.edu (8.10.1/8.10.1) with ESMTP id e63DAaP13052; Mon, 3 Jul 2000 09:10:36 -0400 (EDT) Received: from y.glue.umd.edu (sendmail@localhost [127.0.0.1]) by y.glue.umd.edu (8.9.3/8.9.3) with SMTP id JAA04109; Mon, 3 Jul 2000 09:10:36 -0400 (EDT) Received: from localhost (howardjp@localhost) by y.glue.umd.edu (8.9.3/8.9.3) with ESMTP id JAA04105; Mon, 3 Jul 2000 09:10:35 -0400 (EDT) X-Authentication-Warning: y.glue.umd.edu: howardjp owned process doing -bs Date: Mon, 3 Jul 2000 09:10:35 -0400 (EDT) From: James Howard To: Sheldon Hearn Cc: arch@FreeBSD.ORG Subject: Re: truncate(1) implementation details In-Reply-To: <30005.962629536@axl.ops.uunet.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 3 Jul 2000, Sheldon Hearn wrote: > 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 What does this mean? howardjp@byzantine:~$ ls -l /etc/profile -rw-r--r-- 1 root wheel 963 Sep 6 1999 /etc/profile howardjp@byzantine:~$ truncate -1024 /etc/profile Also, what happens when it is run on a symbolic link or a directory? A block or character device? Jmie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message