On 2020-07-14, Jordan Geoghegan <jor...@geoghegan.ca> wrote: > I was grepping around the ports tree and I found a few places where > unnecessary brackets were used with 'tr'. Using square brackets with tr > for character ranges is unnecessary, and in fact the brackets are > treated literally:
This is a historical portability habit since System V systems required range expressions to be enclosed in square brackets, and as you note it is harmless on BSD. POSIX has since standardized the BSD behavior. There is nothing to do here. -- Christian "naddy" Weisgerber na...@mips.inka.de