Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2003 20:18:45 +0200 (MET DST)
From:      Mark Huizer <xaa+sendpr@timewasters.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   conf/54334: Tip in freebsd-tips datfile for fortune is wrong
Message-ID:  <20030710181845.57EF6612C@nala.dohd.org>
Resent-Message-ID: <200307101820.h6AIKHXK039446@freefall.freebsd.org>

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

>Number:         54334
>Category:       conf
>Synopsis:       Tip in freebsd-tips datfile for fortune is wrong
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 10 11:20:16 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mark Huizer
>Release:        FreeBSD 5.1-BETA i386
>Organization:
>Environment:
System: FreeBSD eeyore.local.dohd.org 5.1-BETA FreeBSD 5.1-BETA #2: Wed May 7 14:40:14 MET DST 2003 xaa@eeyore.local.dohd.org:/sources/obj/sources/src/sys/eeyore i386


	
>Description:

The freebsd-tips file gives this tip:

Need to quickly empty a file? Use "echo > filename".
                -- Dru <genesis@istar.ca>

That is not correct, it will give you a 1 byte file (with a newline).

So this should either be:

echo -n >filename

or 

: > filename

>How-To-Repeat:
	
>Fix:

Change the tip to one of the two versions above
>Release-Note:
>Audit-Trail:
>Unformatted:



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