/bin mount point and sh.exe

Suhaib M. Siddiqi ssiddiqi@ipass.net
Mon May 31 21:10:00 GMT 1999


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@sourceware.cygnus.com



More information about the Cygwin mailing list