R
robertlaferla
I have a Windows batch file (mytest.bat) that calls a Ruby script (mytest).
The mytest.bat looks like this:
ruby %TOOLDIR%\bin\mytest %*
When the batch file is called using "call mytest" from another Ruby script, it is automatically converting the command-line arguments. Specifically, it is converting path arguments:
mytest -i "\testdir\mytests\test.dat"
becomes
"/testdir/mytests/test.dat"
I do not want Ruby converting these paths. It seems like it is going through each string argument, detecting that it is a path and normalizing/converting each path from Windows-style to UNIX-style.
How do I stop Ruby from doing this?
The mytest.bat looks like this:
ruby %TOOLDIR%\bin\mytest %*
When the batch file is called using "call mytest" from another Ruby script, it is automatically converting the command-line arguments. Specifically, it is converting path arguments:
mytest -i "\testdir\mytests\test.dat"
becomes
"/testdir/mytests/test.dat"
I do not want Ruby converting these paths. It seems like it is going through each string argument, detecting that it is a path and normalizing/converting each path from Windows-style to UNIX-style.
How do I stop Ruby from doing this?