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 Sender: root AT pluto DOT ipass DOT net Message-ID: <374A0077.1DB1B476@ipass.net> Date: Mon, 24 May 1999 21:44:23 -0400 From: "Suhaib M. Siddiqi" X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.5-15 i586) X-Accept-Language: en MIME-Version: 1.0 To: Randall Schulz CC: Mark Peterson , cygwin AT sourceware DOT cygnus DOT com Subject: Re: /bin mount point and sh.exe References: <19990525005219 DOT 20273 DOT rocketmail AT web116 DOT yahoomail DOT com> <4 DOT 1 DOT 19990524181411 DOT 00d9eb90 AT mailhost DOT teknowledge DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Randall Schulz wrote: > > 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" These are the porting issues. Often if you want to execute a script from a DOS prompt you need to do this. > > 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 > > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com