Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Jul 2000 01:29:17 +0900
From:      "Daniel C. Sobral" <dcs@newsguy.com>
To:        Sheldon Hearn <sheldonh@uunet.co.za>
Cc:        James Howard <howardjp@glue.umd.edu>, arch@FreeBSD.ORG
Subject:   Re: truncate(1) implementation details
Message-ID:  <396756DD.2235FC7C@newsguy.com>
References:  <30005.962629536@axl.ops.uunet.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
Sheldon Hearn wrote:
> 
> 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

Means a syntax error.

truncate -c -- -1024 nonexistant_file

Though, really, what you posted is non-ambiguous, and easy to parse.

-- 
Daniel C. Sobral			(8-DCS)
dcs@newsguy.com
dcs@freebsd.org
capo@the.great.underground.bsdconpiracy.org

		<jkh> _DES: The Book of Bruce has only one sentence in it, and it says
"the actual directives of my cult are left as an exercise for the
reader. Good luck."
		<EE> jkh: does it really include the 'good luck' part?
		<jkh> EE: OK, I made that part up.
		<jkh> EE: I figured it should sound a bit more cheery than how Bruce
initially dictated it to me.


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?396756DD.2235FC7C>