[racket-dev] DrRacket PF1 Search Bug?

From: Stephen De Gabrielle (spdegabrielle at gmail.com)
Date: Thu Nov 20 19:51:33 EST 2014

in DrRacket:

>  (send-url "file:///Users/spdegabrielle/hello.html?q=aaaba")


> (send-url "file:///Applications/hello.html?q=xyz")


> (send-url


in bash:

Miriams-MacBook-Pro-2:~ spdegabrielle$ open


I've just had a quick go at '(send-url/file ' but I cant remember how to
escape the '?'


On Thu Nov 20 2014 at 11:51:04 PM Eli Barzilay <eli at barzilay.org> wrote:

> On Thu, Nov 20, 2014 at 5:22 PM, Robby Findler
> <robby at eecs.northwestern.edu> wrote:
> > Ah, thanks! I see that if it is trying to load the docs that are in
> > /Applications then it runs the code below, which somehow magically
> > drops the query argument by the time safari gets it. It's not because
> > of the space, either; when I rename "Racket v6.1.1.5" to just "r", it
> > also doesn't work. But if I change the path to one in my home
> > directory (just like the one you write below), then I see it works.
> >
> > Puzzling. It's almost like there is special handling for /Applications
> > instead of /Users.
> Something that might be relevant here: on Windows, the query (?...) or
> fragment (#...)  bits of a URL are dropped when you run them.  That's
> why I made it use a "trampoline" file: it creates a small HTML file
> which can open fine, and that file redirects to the full URL.
> At some point, Linux joined this with "xdg-open" not passing along these
> things also, and needed a similar hack (which IIRC, wasn't done).  So it
> might be that OSX is doing something similar now.
> --
>           ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                     http://barzilay.org/                   Maze is Life!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20141121/47f45c4d/attachment.html>

Posted on the dev mailing list.