summaryrefslogtreecommitdiffstats
path: root/Functions/Prompts
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2008-10-10 09:53:48 +0000
committerBart Schaefer <barts@users.sourceforge.net>2008-10-10 09:53:48 +0000
commit27d940901f1d6ba2986c3d94297c7b72507fdc72 (patch)
tree769199ee7507c14b341bd2f7cd4534f848973122 /Functions/Prompts
parent25814: quote arguments to "eval". (diff)
downloadzsh-27d940901f1d6ba2986c3d94297c7b72507fdc72.tar
zsh-27d940901f1d6ba2986c3d94297c7b72507fdc72.tar.gz
zsh-27d940901f1d6ba2986c3d94297c7b72507fdc72.tar.bz2
zsh-27d940901f1d6ba2986c3d94297c7b72507fdc72.tar.lz
zsh-27d940901f1d6ba2986c3d94297c7b72507fdc72.tar.xz
zsh-27d940901f1d6ba2986c3d94297c7b72507fdc72.tar.zst
zsh-27d940901f1d6ba2986c3d94297c7b72507fdc72.zip
Quote expansion of prompt_opts in prompt() because zsh emulation is by
necessity not enforced there.
Diffstat (limited to 'Functions/Prompts')
-rw-r--r--Functions/Prompts/promptinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit
index 8f964578e..a83414841 100644
--- a/Functions/Prompts/promptinit
+++ b/Functions/Prompts/promptinit
@@ -170,7 +170,7 @@ prompt () {
set_prompt "$@"
(( $#prompt_opts )) &&
- setopt noprompt{bang,cr,percent,subst} prompt${^prompt_opts[@]}
+ setopt noprompt{bang,cr,percent,subst} "prompt${^prompt_opts[@]}"
true
}