Shell changing . (periods) to / (slashes)

Erredon

Registered
I am using the terminal to execute java code. Here is something similar to what I would type.

java -jar mycode.jar http://mysite.com/1.1.1/myothercode.jar

The stuff after mycode.jar is an argument that is sent into the main() function of my code. This is standard java practice.

My problem is that Java on OSX or OSX itself is changing the .'s to /'s so that I get this..

java -jar mycode.jar http://mysite.com/1/1/1/myothercode/jar

It may also be apache running on my osx box doing it. Anyone have any ideas?? This line works just fine on a redhat linux box btw.

Thanks for any help.
 
There must be more going on against the args given to main; the following

Code:
public class jtest
{
   public static void main( String args[] )
   {
      System.out.println( "args[ 0 ] is " + args[ 0 ] );

      System.exit(0);
   }
}

when run

Code:
$ java jtest http://mysite.com/1.1.1/myothercode.jar

prints what is expected

Code:
args[ 0 ] is http://mysite.com/1.1.1/myothercode.jar
 
Back
Top