mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-13 11:21:13 +02:00
29776: fix case of double quotes in double-quote-style
parsing where end character is something else
This commit is contained in:
parent
a0700c5440
commit
3dba9a8614
3 changed files with 14 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
||||||
2011-09-15 Peter Stephenson <pws@csr.com>
|
2011-09-15 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* 29776 (modified as noted): Src/lex.c, Test/D08cmdsubst.ztst:
|
||||||
|
double quotes are not special in double-quote-style parsing
|
||||||
|
if the end character is something else.
|
||||||
|
|
||||||
* 29773: Marco Hinz: Completion/Unix/Type/_perl_modules:
|
* 29773: Marco Hinz: Completion/Unix/Type/_perl_modules:
|
||||||
complete some missed modules.
|
complete some missed modules.
|
||||||
|
|
||||||
|
@ -15413,5 +15417,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.5466 $
|
* $Revision: 1.5467 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -1567,7 +1567,7 @@ dquote_parse(char endchar, int sub)
|
||||||
err = (!brct-- && math);
|
err = (!brct-- && math);
|
||||||
break;
|
break;
|
||||||
case '"':
|
case '"':
|
||||||
if (intick || ((endchar == ']' || !endchar) && !bct))
|
if (intick || (endchar != '"' && !bct))
|
||||||
break;
|
break;
|
||||||
if (bct) {
|
if (bct) {
|
||||||
add(Dnull);
|
add(Dnull);
|
||||||
|
|
|
@ -98,3 +98,11 @@
|
||||||
echo `echo $?`
|
echo `echo $?`
|
||||||
0:Non-empty command substitution inherits status
|
0:Non-empty command substitution inherits status
|
||||||
>1
|
>1
|
||||||
|
|
||||||
|
echo $(( ##\" ))
|
||||||
|
echo $(echo \")
|
||||||
|
echo $((echo \"); echo OK)
|
||||||
|
0:Handling of backslash double quote in parenthesised substitutions
|
||||||
|
>34
|
||||||
|
>"
|
||||||
|
>" OK
|
||||||
|
|
Loading…
Reference in a new issue