Hello, I had a bug with zefram and clint prompts themes. Theses prompts put stuff in psvar. When ksharrays is set, the references are wrong. Prompt themes working with psvar should always check that ksharrays is not set. I found another bug in clint in prompt_clint_precmd setopt noxtrace localoptions local exitstatus=$? I think exitstatus is supposed to get the exit status of the last command. But as setopt is execute just before, exitstatus always receives "0". setopt should be after "local exitstatus=$?" Here is a patch, apply with patch -p 0 >>>> diff -Nur zsh/Functions/Prompts/prompt_clint_setup zsh~/Functions/Prompts/prompt_clint_setup --- zsh/Functions/Prompts/prompt_clint_setup 2006-09-06 02:07:42.000000000 +0200 +++ zsh~/Functions/Prompts/prompt_clint_setup 2006-09-06 02:07:59.000000000 +0200 @@ -56,8 +56,8 @@ } prompt_clint_precmd () { - setopt noxtrace localoptions local exitstatus=$? + setopt noxtrace noksharrays localoptions [[ $exitstatus -ge 128 ]] && psvar[1]=" $signals[$exitstatus-127]" || psvar[1]="" @@ -67,7 +67,7 @@ } prompt_clint_apm_precmd () { - setopt noxtrace localoptions + setopt noxtrace noksharrays localoptions local bat ac bat=${${="$(</proc/apm)"}[7]/%/%%} diff -Nur zsh/Functions/Prompts/prompt_zefram_setup zsh~/Functions/Prompts/prompt_zefram_setup --- zsh/Functions/Prompts/prompt_zefram_setup 1999-11-19 12:48:09.000000000 +0100 +++ zsh~/Functions/Prompts/prompt_zefram_setup 2006-09-06 01:49:29.000000000 +0200 @@ -1,5 +1,6 @@ function prompt_zefram_precmd { local exitstatus=$? + setopt localoptions noxtrace noksharrays psvar=(SIG) [[ $exitstatus -gt 128 ]] && psvar[1]=SIG$signals[$exitstatus-127] [[ $psvar[1] = SIG ]] && psvar[1]=$exitstatus >>>> hopes this helps arno
Attachment:
signature.asc
Description: Digital signature