Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: file bug?

From: greggirwin:mindspring at: 8-May-2003 15:48

Hi Romano, RPT> Is this a bug?
>>> load mold to-file "[s--a]"
RPT> ** Syntax Error: Invalid email -- %[s--a] RPT> ** Near: (line 1) %[s--a] Hmmm, I think maybe so. It looks like to-file should be quoting the file name so you get %"[s--a]" - which works by itself - but if you use it in the context of a path (e.g. %/c/rebol/core/[s--a]), you'd want the whole path quoted, though it isn't necessary in that case. Worth a feedback I'd say. Whatever the case, we need to know how they suggest we deal with this kind of thing. E.g. do we need to escape all chars that would break standard REBOL lexical forms. -- Gregg