From 608e49ac193ed81a4f0648d5630cbdbf18d2eb20 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 7 Apr 2021 17:45:53 +0000 Subject: 48425: Add an XFail test for a 'zstyle -L' escaping bug (workers/48424). --- ChangeLog | 5 +++++ Test/V05styles.ztst | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4bcf659e3..318516bb6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-04-07 Daniel Shahaf + + * 48425: Test/V05styles.ztst: Add an XFail test for a 'zstyle + -L' escaping bug (workers/48424). + 2021-04-06 Jun-ichi Takimoto * 48391: Src/Zle/compresult.c: correctly calculate display string diff --git a/Test/V05styles.ztst b/Test/V05styles.ztst index 048751941..e4bdfece3 100644 --- a/Test/V05styles.ztst +++ b/Test/V05styles.ztst @@ -164,3 +164,12 @@ 0:the example in the documentation remains correct >snow >snow + + ( + zstyle $'con\x00text' $'ke\x00y' $'val\x00u' $'e' + a=( ${(f)"$(zstyle -L)"} ) + a=( ${(M)a:#*con*text*ke*y*val*u*e} ) + print -r -- "$a" + ) +-f:zstyle -L escapes the key (regression: workers/48424) +>zstyle $'con\C-@text' $'ke\C-@y' $'val\C-@u' e -- cgit 1.4.1