Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jul 2000 16:37:32 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        Ben Smithurst <ben@scientia.demon.co.uk>
Cc:        arch@FreeBSD.org
Subject:   Re: truncate(1) implementation details 
Message-ID:  <32476.962635052@axl.ops.uunet.co.za>
In-Reply-To: Your message of "Mon, 03 Jul 2000 14:37:16 %2B0100." <20000703143716.V48373@strontium.scientia.demon.co.uk> 

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 03 Jul 2000 14:37:16 +0100, Ben Smithurst wrote:

> I agree with alex that it should create files iff -c (or something)
> is given on the command line, and the default should be NOT to create
> anything.

Cool.  That seems to be agreed all around.

So we've got:

    truncate [-cv] [+|-]size file [...]
	-c Create files as necessary
	-v Warn about attempts to truncate below zero bytes

where + and - turn the size argument into a delta to be applied, rather
than an absolute size.

Any objections to this interface?

Ciao,
Sheldon.


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?32476.962635052>