From 8c60540ce6a2969878c8e172e0015d32e5a6ddc0 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 8 Jan 2010 09:30:43 +0000 Subject: [PATCH] 27577: sergio: (%) is not needed in zcalc prompt since PROMPTPERCENT is obeyed --- ChangeLog | 9 ++++++++- Functions/Misc/zcalc | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fc3a3fc75..c01235c3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-01-08 Peter Stephenson + + * 27577: sergio: Functions/Misc/zcalc: vared -p obeys + the PROMPTPERCENT option so it's not necessary to have an + explicit (%) in the variable expansion. + 2010-01-07 Clint Adams * 27579: Completion/Unix/Command/_ssh: allow ssh -S argument to @@ -22,6 +28,7 @@ * Jesse Weinstein: 27558: Completion/Unix/Command/_espeak: completion for espeak. +>>>>>>> 1.4856 2010-01-04 Peter Stephenson * 27556: Src/lex.c: lexsave() should sanitize more variables else @@ -12553,5 +12560,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.4856 $ +* $Revision: 1.4857 $ ***************************************************** diff --git a/Functions/Misc/zcalc b/Functions/Misc/zcalc index 42bb72e2c..ebf5cf471 100644 --- a/Functions/Misc/zcalc +++ b/Functions/Misc/zcalc @@ -152,7 +152,7 @@ for (( num = 1; num <= $#; num++ )); do done psvar[1]=$num -while vared -cehp "${(%)ZCALCPROMPT}" line; do +while vared -cehp "${ZCALCPROMPT}" line; do [[ -z $line ]] && break # special cases # Set default base if `[#16]' or `[##16]' etc. on its own.