From 057533460ffc84cf136871c425ffd2886fd0840e Mon Sep 17 00:00:00 2001 From: romkatv Date: Mon, 13 Jan 2020 22:26:42 +0100 Subject: [PATCH] use more precise pattern for process substitutions --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index ef9d1274..b06fe754 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5537,7 +5537,7 @@ function _p9k_parse_buffer() { state=h continue ;; - '`'*'`'|'"`'*'`"'|'$('*')'|'"$('*')"'|['<>=']'('*')') + '`'[^'`']##'`'|'"`'[^'`']##'`"'|'$('[^')']##')'|'"$('[^')']##')"'|['<>=']'('[^')']##')') s=${${token##('"'|)(['$<>']|)?}%%?('"'|)} (( ic )) && tokens+=(';' ${(Z+C+)s}) || tokens+=(';' ${(z)s}) ;;