From owner-freebsd-arch Mon Jul 3 19:43:53 2000 Delivered-To: freebsd-arch@freebsd.org Received: from mta5.rcsntx.swbell.net (mta5.rcsntx.swbell.net [151.164.30.29]) by hub.freebsd.org (Postfix) with ESMTP id DBE6637C266 for ; Mon, 3 Jul 2000 19:43:45 -0700 (PDT) (envelope-from chris@holly.calldei.com) Received: from holly.calldei.com ([208.191.149.190]) by mta5.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0FX500JTVJGWJR@mta5.rcsntx.swbell.net> for arch@FreeBSD.ORG; Mon, 3 Jul 2000 21:41:21 -0500 (CDT) Received: (from chris@localhost) by holly.calldei.com (8.9.3/8.9.3) id VAA94774; Mon, 03 Jul 2000 21:41:30 -0500 (CDT envelope-from chris) Date: Mon, 03 Jul 2000 21:41:29 -0500 From: Chris Costello Subject: Re: truncate(1) implementation details In-reply-to: <3960FA93.4AE5B9EE@gorean.org> To: Doug Barton Cc: Sheldon Hearn , Ben Smithurst , arch@FreeBSD.ORG Reply-To: chris@calldei.com Message-id: <20000703214129.F66762@holly.calldei.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.4i References: <32476.962635052@axl.ops.uunet.co.za> <3960FA93.4AE5B9EE@gorean.org> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, July 03, 2000, Doug Barton wrote: > Errr.. no. I agree that truncate(1) should be consistent with > truncate(2). Rod also made the excellent point that -c means exactly the > opposite in touch than you are proposing here. Even in a script, > > [ truncate foo ] || touch foo More or less ``touch foo && truncate foo'' accomplishes the same thing as the proposed truncate -c foo. -- |Chris Costello |Computer programmers do it byte by byte. `---------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message