[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20474: tr command
From: |
Pádraig Brady |
Subject: |
bug#20474: tr command |
Date: |
Thu, 30 Apr 2015 18:06:56 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
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.