REBOL3 tracker
  0.9.12 beta
Ticket #0001442 User: anonymous

Project:



rss
TypeBug Statustested Date22-Jan-2010 16:41
Versionalpha 96 CategorySyntax Submitted bymeijeru
PlatformAll Severityminor Priorityhigh

Summary A non-quoted file literal can escape a space with ^, shouldn't
Description File literals that do not have quotes may still use escapes. If the escape is followed by a space, this is on the one hand incorporated in the file literal (on printout, it shows up as %20) but on the other hand it terminates the file literal. It seems to me one cannot have it both ways...

This ticket complements #1415.
Example code
>> length? %a^b
== 2 ;; to show the escape really works (length is not 3 but 2)
>> first [%a^ b]
== %a%20 ;; the escaped space is part of the file literal, but...
>> second [%a^ b]
== b ;; the space has ended the literal

Assigned ton/a Fixed inalpha 97 Last Update8-Feb-2010 03:29


Comments

Date User Field Action Change
8-Feb-2010 03:29 BrianH Status Modified built => tested
4-Feb-2010 14:03 carl Fixedin Modified => alpha 97
4-Feb-2010 14:03 carl Status Modified reviewed => built
24-Jan-2010 04:26 BrianH Summary Modified An escaped space in a (non-quoted) file literal is (also) treated as separator => A non-quoted file literal can escape a space with ^, shouldn't
24-Jan-2010 04:26 BrianH Status Modified submitted => reviewed
24-Jan-2010 04:26 BrianH Priority Modified normal => high
22-Jan-2010 16:56 meijeru Description Modified -
22-Jan-2010 16:44 meijeru Description Modified -
22-Jan-2010 16:44 meijeru Code Modified -
22-Jan-2010 16:41 meijeru Ticket Added -