aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-14 00:26:42 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-14 00:26:42 +0300
commit057533460ffc84cf136871c425ffd2886fd0840e (patch)
treedea3e946832842cb55214505e08afc084a5a4067
parentbbc6f8638eac7195d42d1255ef199de147d6fe29 (diff)
use more precise pattern for process substitutions
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
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})
;;