On Mon, Feb 25, 2013 at 9:10 AM, Peter Bex <[email protected]> wrote:

> Do you have a reference where we can read up on this "caret escaping"?

I think you already provided one:
http://technet.microsoft.com/en-us/library/cc723564.aspx

> If it's context-dependent it seems like it would be impossible to decide
> generally which to use,

Right. In Windows escape/quoting rules really depends on which command
is issued. The interpretation of the command-line is mostly up to the
command itself. And each command has its own interpretation of the
rules. An example?

# cd a^ b

will try to enter the "a b" folder, while

# md a^ b

will create the folders "a" and "b".

> and we might need an extra option to choose between both quoting forms
> (abusing the "quoting" option for this is
> wrong because the difference in Windows is semantical while in Unix it
> seems to be purely aesthetical).

Not quite true. For example backslash-escaping has this nice property:

(qs (string-append s1 s2))  == (string-append (qs s1) (qs s2))

Regards,
Michele

_______________________________________________
Chicken-hackers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to