delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/30/23:32:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Thu, 30 May 2002 23:32:13 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Difference between Sun OS and cygwin?
Message-ID: <20020531033213.GA11456@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <AHENJAAPGAHKCFPLDPOJIEKHCGAA DOT relaxedrob AT optushome DOT com DOT au>
Mime-Version: 1.0
In-Reply-To: <AHENJAAPGAHKCFPLDPOJIEKHCGAA.relaxedrob@optushome.com.au>
User-Agent: Mutt/1.3.23.1i

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 AT DIJONG /home/Rob/
>$ cat > filter
>one.doc
>
>
>On Cygwin
>
>Robert Mark Bram AT DIJONG /home/Rob/
>$ cat filter
>one.doc
>
>Robert Mark Bram AT DIJONG /home/Rob/
>$ grep .doc$ filter
>one.doc
>
>Robert Mark Bram AT 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/

- Raw text -


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