about summary refs log tree commit diff
path: root/Doc/Zsh/compsys.yo
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-04 18:26:32 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-06 23:48:10 +0000
commit73c0e8d4e679ed681acc4883234324c7676cc676 (patch)
treea9f037be06e051ee5bc4f68ecbd57e70f46ad8aa /Doc/Zsh/compsys.yo
parent831a336c494b55641b4ba2c8bb89a8acda2709f8 (diff)
downloadzsh-73c0e8d4e679ed681acc4883234324c7676cc676.tar.gz
zsh-73c0e8d4e679ed681acc4883234324c7676cc676.tar.xz
zsh-73c0e8d4e679ed681acc4883234324c7676cc676.zip
39173: _arguments: Escape colons and backslashes in $opt_args unambiguously.
Diffstat (limited to 'Doc/Zsh/compsys.yo')
-rw-r--r--Doc/Zsh/compsys.yo6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 8c7ef0f5a..b2cc39268 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -3948,8 +3948,10 @@ command line after the command name excluding all options and their
 arguments.  Options are stored in the associative array
 `tt(opt_args)' with option names as keys and their arguments as
 the values.  For options that have more than one argument these are
-given as one string, separated by colons.  All colons in the original
-arguments are preceded with backslashes.
+given as one string, separated by colons.  All colons and backslashes
+in the original arguments are preceded with backslashes.  (Note:
+Zsh 5.2 and older did not escape backslashes in the original string;
+see the tt(NEWS) file for details.)
 
 The parameter `tt(context)' is set when returning to the calling function
 to perform an action of the form `tt(->)var(string)'.  It is set to an