From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8959 invoked by alias); 31 May 2002 03:41:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8948 invoked from network); 31 May 2002 03:41:15 -0000 Received: from unknown (HELO uhura.concentric.net) (206.173.118.93) by sources.redhat.com with SMTP; 31 May 2002 03:41:15 -0000 Received: from marconi.concentric.net (marconi.concentric.net [206.173.118.71]) by uhura.concentric.net [Concentric SMTP Routing 1.0] id g4V3fEE13606 ; Thu, 30 May 2002 23:41:14 -0400 (EDT) Received: from Clemens.cris.com (da003d0227.sjc-ca.osd.concentric.net [64.1.0.228]) by marconi.concentric.net (8.9.1a) id XAA06992; Thu, 30 May 2002 23:41:12 -0400 (EDT) Message-Id: <5.1.0.14.2.20020530203100.02d8f668@pop3.cris.com> X-Sender: rrschulz@pop3.cris.com Date: Fri, 31 May 2002 08:13:00 -0000 To: "Robert Mark Bram" , "Cygwin" From: Randall R Schulz Subject: Re: Difference between Sun OS and Cygwin? In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-SW-Source: 2002-05/txt/msg01927.txt.bz2 Robert, I get the same results. Probably it's that Cygwin text vs. binary thing. Dumping the file with "od -c" is the most illustrative of why the grep fails. Show us your CYGWIN environment variable setting, your mount table and confirm that the directory displayed in your prompt is the current directory in which you're running the commands you specify. On my system: % /bin/pwd /cygdrive/c/SD/tau/src/tau/fol % % echo $CYGWIN binmode ntsec % % pwd /c/SD/tau/src/tau/fol % % ls -l /c lrwxrwxrwx 1 RSchulz None 94 Nov 21 2001 /c -> /cygdrive/c % % mount D:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) D:\cygwin\bin on /usr/bin type system (binmode) D:\cygwin\lib on /usr/lib type system (binmode) D:\cygwin on / type system (binmode) \\.\A: on /dev/fd0 type user (binmode) c: on /cygdrive/c type user (binmode,noumount) d: on /cygdrive/d type user (binmode,noumount) e: on /cygdrive/e type user (binmode,noumount) g: on /cygdrive/g type user (binmode,noumount) h: on /cygdrive/h type user (binmode,noumount) % cat >file one.doc ^D % % od -c file 0000000 o n e . d o c \r \n 0000011 % % grep .doc$ file % Randall Schulz Mountain View, CA USA At 20:23 2002-05-30, Robert Mark Bram wrote: >Howdy all! > >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$ > >Robert Mark Bram@DIJONG /home/Rob/ >$ > >Any help would be appreciated! > >Rob -- 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/