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]

Re: Difference between Sun OS and cygwin?


On Fri, May 31, 2002 at 01:23:05PM +1000, Robert Mark Bram wrote:
>Can anyone tell me why I am seeing this difference between Sun and Cygwin?
>
>On a Sun machine
>
>bash-2.03$ cat > filter
>one.doc
>^C
>bash-2.03$ cat filter
>one.doc
>bash-2.03$ grep .doc$ filter
>one.doc
>bash-2.03$ cat filter | grep .doc$
>one.doc
>bash-2.03$
>
>Robert Mark Bram@DIJONG /home/Rob/
>$ cat > filter
>one.doc
>
>
>On Cygwin
>
>Robert Mark Bram@DIJONG /home/Rob/
>$ cat filter
>one.doc
>
>Robert Mark Bram@DIJONG /home/Rob/
>$ grep .doc$ filter
>one.doc
>
>Robert Mark Bram@DIJONG /home/Rob/
>$ cat filter | grep .doc$

one.doc undoubtedly has a CRLF line ending.  od -c would probably demonstrate
this.

cgf

--
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]