summaryrefslogtreecommitdiff
path: root/README.win32
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2011-09-11 23:01:57 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2011-09-11 23:01:57 +0100
commit41bfb3b613f3eb11b0288f54124b48bae12fddef (patch)
tree54d6751d6c88496fcefef84da81baded8d2032ac /README.win32
parent7c3b4d0061393a73e967e74810d5d58142c2fa94 (diff)
downloadperl-41bfb3b613f3eb11b0288f54124b48bae12fddef.tar.gz
Add links to Windows documentation of shell and CRT quote parsing rules
Diffstat (limited to 'README.win32')
-rw-r--r--README.win3221
1 files changed, 12 insertions, 9 deletions
diff --git a/README.win32 b/README.win32
index f7549ae771..c7c8fd26cd 100644
--- a/README.win32
+++ b/README.win32
@@ -487,15 +487,18 @@ using a non-standard shell, be inconsistent). The only (useful) quote
character is the double quote ("). It can be used to protect spaces
and other special characters in arguments.
-The Windows documentation has almost no description of how the
-quoting rules are implemented, but here are some general observations
-based on experiments: The C runtime breaks arguments at spaces and
-passes them to programs in argc/argv. Double quotes can be used to
-prevent arguments with spaces in them from being split up. You can
-put a double quote in an argument by escaping it with a backslash and
-enclosing the whole argument within double quotes. The backslash and
-the pair of double quotes surrounding the argument will be stripped by
-the C runtime.
+The Windows documentation describes the shell parsing rules here:
+L<http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cmd.mspx?mfr=true>
+and the C runtime parsing rules here:
+L<http://msdn.microsoft.com/en-us/library/17w5ykft%28v=VS.100%29.aspx>.
+
+Here are some further observations based on experiments: The C runtime
+breaks arguments at spaces and passes them to programs in argc/argv.
+Double quotes can be used to prevent arguments with spaces in them from
+being split up. You can put a double quote in an argument by escaping
+it with a backslash and enclosing the whole argument within double quotes.
+The backslash and the pair of double quotes surrounding the argument will
+be stripped by the C runtime.
The file redirection characters "E<lt>", "E<gt>", and "|" can be quoted by
double quotes (although there are suggestions that this may not always