bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38080: 'tr' BUG using complement option with delete chars in HEX vs


From: Owen Townsend
Subject: bug#38080: 'tr' BUG using complement option with delete chars in HEX vs OCTAL
Date: Tue, 5 Nov 2019 16:58:58 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

To: bug-coreutils.org
From: Owen Townsend, address@hidden
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

Attachment: renameOK
Description: Text document

Attachment: renameOKx
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]