diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-04 18:26:32 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-09-06 23:48:10 +0000 |
commit | 73c0e8d4e679ed681acc4883234324c7676cc676 (patch) | |
tree | a9f037be06e051ee5bc4f68ecbd57e70f46ad8aa /Doc/Zsh/compsys.yo | |
parent | 831a336c494b55641b4ba2c8bb89a8acda2709f8 (diff) | |
download | zsh-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.yo | 6 |
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 |