I wrote a perl script that runs command strings using the system
perl command. And under Windows 10, when it comes to running a command like
cd /D R:/some_path…`
it gives the following error message
sh: line 0: cd: /D: No such file or directory
but directly running the same command via Windows 10 cmd
is successful. What's odd to me here is that this error message is used to appear on Linux systems. what could be causing this behaviour, and how can I get it to work correctly?
thanks for all the comments. I figured out that the Perl I'm using is inside the cygwin/bin folder. I changed it to regular perl under windows and it works great.