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

To reply to this bug, email your comments to 38080 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#38080; Package coreutils. (Wed, 06 Nov 2019 01:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Owen Townsend <owen <at> uvsoftware.ca>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 06 Nov 2019 01:00:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Owen Townsend <owen <at> uvsoftware.ca>
To: bug-coreutils <at> gnu.org
Subject: '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.