[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [patch] utils: qs not escaping pipes
From: |
Michele La Monaca |
Subject: |
Re: [Chicken-hackers] [patch] utils: qs not escaping pipes |
Date: |
Mon, 25 Feb 2013 14:53:10 +0100 |
On Mon, Feb 25, 2013 at 9:10 AM, Peter Bex <address@hidden> 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
- Re: [Chicken-hackers] [patch] utils: qs not escaping pipes, (continued)
Re: [Chicken-hackers] [patch] utils: qs not escaping pipes, Michele La Monaca, 2013/02/19
Re: [Chicken-hackers] [patch] utils: qs not escaping pipes, Michele La Monaca, 2013/02/24