GNU bug report logs -
#20474
tr command
Previous Next
Reported by: Joseph Piette <Joe.Piette <at> cantire.com>
Date: Thu, 30 Apr 2015 16:47:01 UTC
Severity: normal
Tags: notabug
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 20474 <at> debbugs.gnu.org (full text, mbox):
tag 20474 notabug
close 20474
stop
On 30/04/15 17:31, Joseph Piette wrote:
> Hello:
>
> When transferring files from the Windows environment to the Linux environment we execute a script to remove the \cr characters. The script performs a simple
>
> tr -d '\r' < input > output
>
> Recently we were testing with files that contained a string with a single quote – “Paym’t”
> What the tr command is doing is not only removing the “\cr” characters but also the single quote. What we ended up with was “Paymt”
I'm guessing that you're using a unibyte locale
and that your tr command is using curly quotes rather that single quotes.
That in turn is passed by the shell to tr which will then delete such curly quotes?
Pádraig.
This bug report was last modified 10 years and 101 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.