conf/54334: Tip in freebsd-tips datfile for fortune is wrong

Mark Huizer xaa+sendpr at timewasters.nl
Thu Jul 10 11:20:19 PDT 2003


>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 at 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 at 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:


More information about the freebsd-bugs mailing list