How do I prevent ruby on windows from automatically converting filename arguments?
- From: robertlaferla@xxxxxxxxxxx
- Date: Tue, 1 May 2007 03:02:45 +0900
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?
.
- Follow-Ups:
- Prev by Date: Re: Class Level Variables
- Next by Date: Re: ruby and true
- Previous by thread: no such file to load -- openssl (MissingSourceFile)
- Next by thread: Re: How do I prevent ruby on windows from automatically converting filename arguments?
- Index(es):
Relevant Pages
|