in reply to Re^2: run in-program shell script under windows using cygwin
in thread run in-program shell script under windows using cygwin

I was surprised because I did not expect that, simply.

Now, running your command, I get this:

$ perl -V:sh sh='/bin/sh';
And I have also this:
$ which sh /usr/bin/sh
Well, there is something that I don't get here...

Replies are listed 'Best First'.
Re^4: run in-program shell script under windows using cygwin
by Anonymous Monk on Jul 31, 2014 at 08:37 UTC

    Well, there is something that I don't get here...

    Well, does /bin/sh exist? Don't know why your perl is configured with /bin/sh instead of /usr/bin/sh ... :)

      Well, /bin/sh and /usr/bin/sh both exist, and the script works (with Perl) with both paths in the shebang line of the shell script.