<p>
</p><p>in DrRacket:</p><p>> (send-url "file:///Users/spdegabrielle/hello.html?q=aaaba")</p><p>works</p><p>> (send-url "file:///Applications/hello.html?q=xyz")</p><p>works</p><p></p><p>> (send-url "file:///Applications/Racket%20v6.1.1.5/doc/search/index.html?q=xyzzzzz")</p><p>fails</p><p><br></p><p>in bash:</p><p>
</p><p><span>Miriams-MacBook-Pro-2:~ spdegabrielle$ open "file:///Users/spdegabrielle/hello.html?q=aaaa"</span></p><p><span>fails</span></p><p><span><br></span></p><p><span>I've just had a quick go at '</span>(send-url/file ' but I cant remember how to escape the '?'</p><p><span><br></span></p><p>S.</p><p><br></p><br><div class="gmail_quote">On Thu Nov 20 2014 at 11:51:04 PM Eli Barzilay <<a href="mailto:eli@barzilay.org" target="_blank">eli@barzilay.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Nov 20, 2014 at 5:22 PM, Robby Findler<br>
<<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>> wrote:<br>
> Ah, thanks! I see that if it is trying to load the docs that are in<br>
> /Applications then it runs the code below, which somehow magically<br>
> drops the query argument by the time safari gets it. It's not because<br>
> of the space, either; when I rename "Racket v6.1.1.5" to just "r", it<br>
> also doesn't work. But if I change the path to one in my home<br>
> directory (just like the one you write below), then I see it works.<br>
><br>
> Puzzling. It's almost like there is special handling for /Applications<br>
> instead of /Users.<br>
<br>
Something that might be relevant here: on Windows, the query (?...) or<br>
fragment (#...) bits of a URL are dropped when you run them. That's<br>
why I made it use a "trampoline" file: it creates a small HTML file<br>
which can open fine, and that file redirects to the full URL.<br>
<br>
At some point, Linux joined this with "xdg-open" not passing along these<br>
things also, and needed a similar hack (which IIRC, wasn't done). So it<br>
might be that OSX is doing something similar now.<br>
<br>
--<br>
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:<br>
<a href="http://barzilay.org/" target="_blank">http://barzilay.org/</a> Maze is Life!<br>
</blockquote></div>