I want to do something like this from a shell script:
$ open 'foo.html?foo=bar'
Sadly that fails, as it looks for a file named
foo.html?foo=bar instead of
foo.html before opening the browser:
The file /tmp/foo.html?foo=bar does not exist.
I noticed that
open supports this for HTTP(S) URLs, though:
$ open 'https://mathiasbynens.be/demo/get?foo=bar'
So I tried to use a
$ open 'file:///tmp/foo.html?foo=bar'
This doesn’t error (yay), but it still only opens
foo.html in the browser, without the query string appended.
So, is this possible at all?