This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Sounds serious! RE: 1.3.10: CRLF problem introduced in upgrade


> -----Original Message-----
> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> Of Daryl Spartz
> Sent: Wednesday, March 13, 2002 9:57 PM
> To: cygwin@cygwin.com
> Subject: 1.3.10: CRLF problem introduced in upgrade
>
>
> I have the following in my .bashrc:
>
> export DISPLAY=`ipconfig | grep 'IP Address' | awk '{ split( $0, line, ":
> " ); print line[ 2 ] }'`":0"
Save a process, use:
export DISPLAY=`ipconfig | awk '/IP Address/{ split( $0, line, ":" ); print
line[ 2 ] }'`":0"

Yes, there's a problem someplace.  Using CYGWIN:
$ od -ac /C/TEMP/ipconfig.out
0000000  cr  cr  nl   W   i   n   d   o   w   s  sp   2   0   0   0  sp
         \r  \r  \n   W   i   n   d   o   w   s       2   0   0   0
0000020   I   P  sp   C   o   n   f   i   g   u   r   a   t   i   o   n
          I   P       C   o   n   f   i   g   u   r   a   t   i   o   n
0000040  cr  cr  nl  cr  cr  nl   E   t   h   e   r   n   e   t  sp   a

Using a windows-based OD,:
C:\TEMP>od -ac ipconfig.out
0000000  nl   W   i   n   d   o   w   s  sp   2   0   0   0  sp   I   P
         \n   W   i   n   d   o   w   s       2   0   0   0       I   P
0000020  sp   C   o   n   f   i   g   u   r   a   t   i   o   n  nl  nl
              C   o   n   f   i   g   u   r   a   t   i   o   n  \n  \n
I also verified this with GNU emacs, hexl-mode.

So there is some problem reading the text-mode file.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]