Mail Archives: cygwin/1999/05/24/21:46:14
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
- Raw text -