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 X-Originating-IP: [195.224.233.3] From: "John Vincent" To: relaxedrob AT optushome DOT com DOT au Cc: cygwin AT cygwin DOT com Subject: RE: Jaw dropping to the desk Date: Fri, 28 Jun 2002 15:06:37 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Jun 2002 15:06:37.0359 (UTC) FILETIME=[664643F0:01C21EB5] Hi, What you need to remember is that all the cygwin programs are compiled by a version of the gcc compiler that produces **windows** programs. So cygwin installs a windows version of 'ls', a windows version of 'grep', a windows version of 'rvxt', a windows version of 'bash', etc. Also, remember that the DOS command prompt - command.com (and the newer cmd.exe) both understand pipelines in the same syntax as bash, so when you type the '|' character, cmd.exe knows to connect the standard output of one program to the standard input of the next. These two factors explain why your command worked. Regards, /John Vincent. > >*tongue lolling around the floor of my mouth* > >I forgot I was in DOS and tried to do an "ls | grep" while in cmd.exe >(Win2K)... and it worked!! > >How???? How does my Windows OS know how to use Cygwin stuff? > >Rob > >:) >:-} >;-> _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- 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/