Re: 'tr' extra brackets treated literally

2020-07-14 Thread Christian Weisgerber
On 2020-07-14, Jordan Geoghegan 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

'tr' extra brackets treated literally

2020-07-14 Thread Jordan Geoghegan
Hello, 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: ryzen$ echo "[hello]" | tr -d a-z [] ryzen$ echo "[hello]" |