GNU bug report logs - #38080
'tr' BUG using complement option with delete chars in HEX vs OCTAL

Previous Next

Package: coreutils;

Reported by: Owen Townsend <owen <at> uvsoftware.ca>

Date: Wed, 6 Nov 2019 01:00:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Owen Townsend <owen <at> uvsoftware.ca>
To: 38080 <at> debbugs.gnu.org
Subject: bug#38080: 'tr' BUG using complement option with delete chars in HEX vs OCTAL
Date: Tue, 5 Nov 2019 16:58:58 -0800
[Message part 1 (text/plain, inline)]
To: bug-coreutils.org
From: Owen Townsend, owen <at> uvsoftware.ca
Date: Nov.05/2019
Subject: 'tr' BUG using complement option with delete chars in HEX vs OCTAL

fn2=$(echo $fn1 | tr -cd '\12\40-\176')      #<-- OCTAL works, but HEX 
preferred
fn2=$(echo $fn1 | tr -cd \$'\x0A\x20-\x7E')  #<-- HEX does not work

See attached scripts renameOK & renameOKx
renameOK  - octal coding, works OK
renameOKx - HEX coding does NOT work
          - see test results coded as #comments at end of script

Please let me know if you confirm this is a bug and when it might be fixed ?
I am using Ubuntu 16.04 & plan to upgrade to 20.04 when available

Thanks, Owen

[renameOK (text/plain, attachment)]
[renameOKx (text/plain, attachment)]

This bug report was last modified 5 years and 313 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.