Date: Mon, 3 Jul 2000 09:10:35 -0400 (EDT) From: James Howard <howardjp@glue.umd.edu> To: Sheldon Hearn <sheldonh@uunet.co.za> Cc: arch@FreeBSD.ORG Subject: Re: truncate(1) implementation details Message-ID: <Pine.GSO.4.21.0007030906530.3963-100000@y.glue.umd.edu> In-Reply-To: <30005.962629536@axl.ops.uunet.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.21.0007030906530.3963-100000>