delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/28/11:07:19

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
X-Originating-IP: [195.224.233.3]
From: "John Vincent" <jpv50 AT hotmail DOT com>
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
Message-ID: <F297tQvAauNjVuMhvqg00000046@hotmail.com>
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/

- Raw text -


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