Subject: bin/12239: sort globbers output file
To: None <>
From: Kimmo Suominen <>
List: netbsd-bugs
Date: 02/18/2001 15:48:53
>Number:         12239
>Category:       bin
>Synopsis:       sort globbers output file
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 18 12:49:00 PST 2001
>Release:        2001-02-16
Kimmo Suominen
System: NetBSD 1.5S NetBSD 1.5S (GW-GENERIC) #2: Sun Feb 18 00:30:00 EST 2001 i386
Architecture: i386
Machine: i386

Also happens on NetBSD/sparc of the same date.
Sort will overwrite existing contents of its output file descriptor.
Run this script:

    echo x y z | tr ' ' \\012 > foo.txt
    echo a b c | tr ' ' \\012 | sort >> foo.txt

The output file will have no trace of x, y or z.