1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00

48432 and enable test: fix quotiing of zstyle -L for zstyle -e

This commit is contained in:
Peter Stephenson 2021-04-09 21:01:37 +01:00
parent eaff11c748
commit 283d2f3c27
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2021-04-09 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 48432 (plus test change): Src/Modules/zutil.c,
Test/V05styles.ztst: Fix quoting of zstyle -L output for
-e styles, and enable test.
2021-04-09 Oliver Kiddle <opk@zsh.org> 2021-04-09 Oliver Kiddle <opk@zsh.org>
* 48378: Completion/Zsh/Command/_compadd: complete compadd * 48378: Completion/Zsh/Command/_compadd: complete compadd

View file

@ -200,7 +200,8 @@ printstylenode(HashNode hn, int printflags)
else { else {
printf("zstyle %s", (p->eval ? "-e " : "")); printf("zstyle %s", (p->eval ? "-e " : ""));
quotedzputs(p->pat, stdout); quotedzputs(p->pat, stdout);
printf(" %s", s->node.nam); putchar(' ');
quotedzputs(s->node.nam, stdout);
} }
for (v = p->vals; *v; v++) { for (v = p->vals; *v; v++) {
putchar(' '); putchar(' ');

View file

@ -171,5 +171,5 @@
a=( ${(M)a:#*con*text*ke*y*val*u*e} ) a=( ${(M)a:#*con*text*ke*y*val*u*e} )
print -r -- "$a" print -r -- "$a"
) )
-f:zstyle -L escapes the key (regression: workers/48424) 0:zstyle -L escapes the key (regression: workers/48424)
>zstyle $'con\C-@text' $'ke\C-@y' $'val\C-@u' e >zstyle $'con\C-@text' $'ke\C-@y' $'val\C-@u' e