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.