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

[REBOL] Re: to-path newline problem?

From: larry:ecotope at: 12-Aug-2001 13:17

Hi Anton, I think it is a bug, because to-path is converting a block of words to a path datatype and the presence of newlines in the molded block should not have any effect on the interpretation. You should send it in to feedback! The work-around of removing the newline can not be done directly because the newline is not in the block (not accessible with pick, etc.) but you can fix the offending block in a more devious fashion. At the console:
>> b: [hello
[ there] == [hello there] The block be cannot be converted with to-path
>> path: to-path b
== hello/ there But we can go back to the mold of b and remove the newlines, load it back and convert:
>> path: to-path load replace/all mold b "^/" ""
== hello/there Cheers -Larry