Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Robert Mark Bram" To: "Cygwin" Subject: RE: Difference between Sun OS and Cygwin? Date: Fri, 31 May 2002 13:49:41 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <5.1.0.14.2.20020530203100.02d8f668@pop3.cris.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Hi Randall! Well, I got some different results here (not for grep - for the other things). Robert Mark Bram AT DIJONG /home/Rob $ /bin/pwd /home/Rob Robert Mark Bram AT DIJONG /home/Rob $ echo $CYGWIN Robert Mark Bram AT DIJONG /home/Rob $ pwd /home/Rob Robert Mark Bram AT DIJONG /home/Rob $ ls -l /c ls: /c: No such file or directory Robert Mark Bram AT DIJONG /home/Rob $ mount C:\cygwin\bin on /usr/bin type system (textmode) C:\cygwin\lib on /usr/lib type system (textmode) C:\cygwin on / type system (textmode) \Rob on /home/Rob type user (textmode) c: on /cygdrive/c type user (textmode,noumount) f: on /cygdrive/f type user (textmode,noumount) Robert Mark Bram AT DIJONG /home/Rob $ cat >file one.doc Robert Mark Bram AT DIJONG /home/Rob $ od -c file 0000000 o n e . d o c \r \n 0000011 Robert Mark Bram AT DIJONG /home/Rob $ grep .doc$ file one.doc Robert Mark Bram AT DIJONG /home/Rob $ What does the GYGWIN variable hold? Rob :) > -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf > Of Randall R Schulz > Sent: Friday, 31 May 2002 1:42 PM > To: Robert Mark Bram; Cygwin > Subject: Re: Difference between Sun OS and Cygwin? > > > 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 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$ > > > >Robert Mark Bram AT 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/ > -- 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/