Date: Mon, 03 Jul 2000 19:52:11 +0200 From: Mark Murray <mark@grondar.za> To: Sheldon Hearn <sheldonh@uunet.co.za> Cc: arch@FreeBSD.ORG Subject: Re: truncate(1) implementation details Message-ID: <200007031752.TAA01648@grimreaper.grondar.za> In-Reply-To: <30005.962629536@axl.ops.uunet.co.za> ; from Sheldon Hearn <sheldonh@uunet.co.za> "Mon, 03 Jul 2000 15:05:36 %2B0200." References: <30005.962629536@axl.ops.uunet.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007031752.TAA01648>