[REBOL] Re: to-path newline problem?
From: larry:ecotope at: 12-Aug-2001 13:17
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
The block be cannot be converted with to-path
>> path: to-path b
But we can go back to the mold of b and remove the newlines, load it back
>> path: to-path load replace/all mold b "^/" ""