Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jul 2000 15:45:28 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        James Howard <howardjp@glue.umd.edu>
Cc:        arch@FreeBSD.ORG
Subject:   Re: truncate(1) implementation details 
Message-ID:  <30802.962631928@axl.ops.uunet.co.za>
In-Reply-To: Your message of "Mon, 03 Jul 2000 09:42:03 -0400." <Pine.GSO.4.21.0007030940200.5251-100000@y.glue.umd.edu> 

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


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30802.962631928>