----- Original Message ----- From: "Brian Raven" <[EMAIL PROTECTED]> To: <perl-win32-users@listserv.ActiveState.com> Sent: Wednesday, September 10, 2008 11:33 PM Subject: RE: Run perl on window using cygwin+Eclipse+EPIC
> Sisyphus <> wrote: >> ----- Original Message ----- >> From: "Jing LI" <[EMAIL PROTECTED]> . >> . >>> It uses find to find a type of file in a directory and its >>> subdirectories: >>> >>> my @jarfiles = split(' ',`find $bin_location -name "*.jar"`); >>> >>> But when run or debug it in Eclipse, it has error: >>> sh: find: No such file or directory. >>> >> >> I believe that error message is being produced by your >> C:/cygwin/bin/find.exe - which means that find.exe is being found ok. >> The problem appears to be that the directory $bin_location is not >> being found. > > I don't think so. Yes, you're right. > If that were the case I would expect the error message > to be something like "find: fred: No such file or directory". That it > starts "sh:" suggests that is coming from the shell, or something > pretending to be the shell. What I find puzzling is that if the shell > could not find the find executable, I would expect to see something like > "sh: find: command not found". Perhaps with the 'sh find' command, 'sh' expects to find a script called 'find'. When it fails to find that script (since no file named 'find' exists), it then complains "No such file or directory". [EMAIL PROTECTED] ~ $ sh find sh: /usr/bin/find: No such file or directory [EMAIL PROTECTED] ~ $ sh find.exe /usr/bin/find.exe: /usr/bin/find.exe: cannot execute binary file [EMAIL PROTECTED] ~ Even that confuses me - because of the "/usr/bin/" prefixing that's happening. But Cygwin *always* confuses me ... which is the reason that I avoid it wherever possible. Cheers, Rob _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs