Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <4.1.19990524181411.00d9eb90@mailhost.teknowledge.com> X-Sender: rschulz AT mailhost DOT teknowledge DOT com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Mon, 24 May 1999 18:37:34 -0700 To: "Suhaib M. Siddiqi" , Mark Peterson From: Randall Schulz Subject: Re: /bin mount point and sh.exe Cc: cygwin AT sourceware DOT cygnus DOT com In-Reply-To: <3749F727.CDDF63BB@ipass.net> References: <19990525005219 DOT 20273 DOT rocketmail AT web116 DOT yahoomail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hi, Suhaib's response is correct. But to expound, let me point out a few other pertinent facts: This command (whether invoked from sh, BASH or a "DOS" prompt): sh command is a request to have sh open the file "command" and interpret it as a script of shell commands. It will do this regardless of whether or not the file named "command" has a suitable execute bit set. Under Linux, sh does PATH searching in this case. Under cygwin it apparently does not. In this case, arguments following "command" will be presented to the "command" script (assuming it is one) as $1, $2, etc. shell script parameters. This one: sh -c "command argument-to-command" requests sh to interpret the string given as an argument to the "-c" option as a command, pretty much as if you'd typed it to an interactive instance of "sh." In this case "command" must have an execute bit set. One last (interesting) thing to note: Under cygwin, a file will display execute bits if it begins with "#!". I suppose this is one reason why "ls -l" is so much slower under cygwin (at least the first time--before the disk cache is primed with the files' contents) than a "details" listing under Windows Explorer. Randy Schulz Teknowledge Corp. Palo Alto, CA USA At 06:04 PM 5/24/99 , Suhaib M. Siddiqi wrote: >Mark Peterson wrote: >> >> I have chosen the "identity mount" setup and mounted > >> This is the question: >> At DOS with paths set up so that the H-i586-cygwin32/bin directory can >> be found, should I be able >> to simply type: >> >> sh ls > >If you have H-i586-cygwin32/bin in your DOS path sould be able to >type ls (not sh ls) and get the results. > >> >> and get a directory? As it is, sh cannot find ls in this way. Is this >> bad syntax, or is this normal behavior? >> >> My mounts are down below. >> >> Thanks, >> Mark -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com