delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/03/10:52:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-VirusChecked: Checked
X-Env-Sender: jan DOT just DOT keijser AT logicacmg DOT com
X-Msg-Ref: server-20.tower-36.messagelabs.com!1115131912!16934818!1
X-StarScan-Version: 5.4.15; banners=logicacmg.com,-,-
Message-ID: <D1D50F9C5151D2119FF000104BB3F9B708E1B754@NL-ROT-MAIL02>
From: Jan Just Keijser <jan DOT just DOT keijser AT logicacmg DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: echo "$(echo '\r')" oddity
Date: Tue, 3 May 2005 16:51:45 +0200
MIME-Version: 1.0
X-OriginalArrivalTime: 03 May 2005 14:47:06.0375 (UTC) FILETIME=[F9EC4970:01C54FEE]
X-IsSubscribed: yes

Hi,

I have just run into a Cygwin vs Linux oddity that I cannot explain. I've
managed to trace the problem back to a very simple statement:
  echo "$(echo -e '\r')" | od -x
on my W2K Cygwin install (Cygwin1.dll 2005/04/01), this produces
  0000000 000a
  0000001
On Linux, this command produces:
  # echo "$(echo -e '\r')" | od -x
  0000000 0a0d
  0000002
(which is what I'd expect). 
Also, the Cygwin command
  echo -e '\r' | od -x
also returns
  0000000 0a0d
  0000002
which is , again, what I would expect. I've tried setting CYGWIN to 'tty
binmode' but it did not make a difference. 

What am I doing wrong here?

thanks in advance,

JJ Keijser

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019