# RobertX: 30 Nov 2015
If you man pages and your info pages are out of sync that's a BUG.
# anonymous: 05 Oct 2019
Many of these are really Unix gotchas that predate the implementation of GNU coreutils.
# mcswell: 06 Oct 2019
Not sure if this is the kind of thing you're talking about, but there are multiple regex languages for sed, grep, grep -E, and probably awk/gawk. Another issue is the treatment of Unicode; it would be nice if all the utilities handled UTF-8, but many don't.
# Bruce Fowler: 20 Nov 2020
The "date" command pads output with zeros by default. If "date" output is used in shell arithmetic, those values will be interpreted as octal numbers. This leads to subtle anomalous behavior where the results look good but are incorrect, E.G:
$ echo $(($(date -d 3/6/2021 '+%j')+10))
Ten days after March 6th becomes March 4th! This is easy to fix by putting a minus after the percent symbol, but it took some head-scratching to figure out what was going on. I suggest a warning in the "date" man page about the possible misinterpretation of leading zeros.
# Pádraig Brady: 20 Nov 2020
@Bruce, that's kinda a shell gotcha.
Note also you can use relative dates in date itself, like:
date -d '3/6/2021 + 10 days' '+%j'
# Matěj Cepl: 27 Dec 2023
`sort -u -nr` is not the same as `sort -nr|uniq`

See [this Reddit post](https://www.reddit.com/r/openSUSE/comments/tg70de/something_weird_about_sort_u/) for an example.
# Pádraig Brady: 28 Dec 2023
I suppose that is a bit of a gotcha.
I.e. that -u operates on part of the line being compared, rather than the whole line.
I'll consider adding it.

Note the full docs already mention this with:
# Doug McIlroy: 04 May 2024
Multicolumn pr, that is pr -COLUMN where COLUMN>=2, implicitly turns on options -e (expand input tab characters to spaces) and -i (greedily convert runs of output space characters to tabs). Output tabs may appear where no input tabs existed; further processing of the output may be fraught. This pipeline will eliminate all output tabs: pr -COLUMN | pr -e -t.
# Pádraig Brady: 04 May 2024
@Doug McIlroy, good call. I've added your comment to the page directly at:


(no HTML)