Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Not sure if it was asked before but I really couldnt find anything related to this. Heres my Question. Opening a URL in firefox through linux command line works fine, like below:

firefox www.google.com (this command works alright)

But, how do I open a URL having GET params. e.g.

firefox www.google.com?param1=val1

It URL Encodes the whole URL and convers the "?" to "%3F" . On window open, the URL becomes: www.google.com%3Fparam1=val1 and not understood by the browser

share|improve this question
    
I don't use firefox. But I think this shoud work firefox "www.google.com?param1=val1" –  Thomas15v Apr 5 '13 at 12:09
add comment

1 Answer 1

If you type that from a command prompt then the shell will parse the ?
(The same will happen if your URL contains an ampersand (&) or an asterix (*).

To avoid this use double quotes around the part you do not want the shell to parse.

E.g. /usr/local/bin/firefox "http://www.google.com?param1=val1"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.