Running Safari from the command line adds current directory to the URL

Posted by Charles Anderson on Super User See other posts from Super User or by Charles Anderson
Published on 2010-04-22T16:58:47Z Indexed on 2010/04/22 17:03 UTC
Read the original article Hit count: 514

Filed under:
|

I am trying to run the Safari browser (on Mac OS 10.4) from the command line, as follows:

/Applications/Safari.app/Contents/MacOS/Safari http://localhost/dev/myfile.html

However, Safari starts up and tries to access

file:///Users/charlesanderson/scripts/http://localhost/dev/myfile.html

/Users/charlesanderson/scripts happens to be my current directory.

Can someone explain why Safari does this? Firefox is much better behaved?

© Super User or respective owner

Related posts about safari

Related posts about mac