[racket-dev] require does not recognize filenames with '>' in them

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Dec 29 08:33:08 EST 2011

You can use a `file' module path to allow ">" in the name:

 (require (file "file-with-lo>ng-name"))

A ">" isn't allowed with the portable relative-path form, because ">"
isn't allowed in paths on Windows (roughly speaking).

At Thu, 29 Dec 2011 12:03:14 +0100, Marijn wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> require doesn't seem to like filename with '>' in them:
> 
> $ FILENAME="file-with-long-name"; echo '(module bert racket (displayln
> 42))' > "${FILENAME}" && racket -e "(require \"${FILENAME}\")"; rm
> "${FILENAME}"
> 42
> $ FILENAME="file-with-lo>ng-name"; echo '(module bert racket
> (displayln 42))' > "${FILENAME}" && racket -e "(require
> \"${FILENAME}\")"; rm "${FILENAME}"
> #f::0: require: bad module-path string at: "file-with-lo>ng-name" in:
> (require "file-with-lo>ng-name")
> 
>  === context ===
> /usr/lib64/racket/collects/racket/private/reqprov.rkt:243:14:
> transform-simple
> /usr/lib64/racket/collects/racket/private/reqprov.rkt:222:2
> 
> Marijn
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.18 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk78SPIACgkQp/VmCx0OL2wP4wCgs0uuuAzzVR/gtE36H3QXL0wy
> y7QAn0Uf2qIyjeblQLH07JuQCNqunAe1
> =HR6A
> -----END PGP SIGNATURE-----
> _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev


Posted on the dev mailing list.