[Bug 261495] sort --debug should print the information to stderr instead stdout
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jan 2022 17:22:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261495 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=heapsort I do not like that the debug information is printed to the same file descriptor (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. -- You are receiving this mail because: You are the assignee for the bug.