Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2022 17:22:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261495] sort --debug should print the information to stderr instead stdout
Message-ID:  <bug-261495-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261495

            Bug ID: 261495
           Summary: sort --debug should print the information to stderr
                    instead stdout
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: wosch@FreeBSD.org

sort --debug should print the information to stderr instead stdout

BSD sort has a flag to display extract information (memory usage, collate, =
sort
method).

     --debug
             Print some extra information about the sorting process to the
             standard output.

e.g.:

$ cat /dev/null  | sort --debug
Memory to be used for sorting: 34288343040
Using collate rules of C.UTF-8 locale
sort_method=3Dheapsort

I do not like that the debug information is printed to the same file descri=
ptor
(stdout) as the normal output.

$ date  | sort | wc -l
       1

$ date  | sort --debug | wc -l
       4

Proposed fix: print the debug information to stderr, similar to GNU sort.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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