summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Functions/Misc/zcalc2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 75e7411a0..d12dcd643 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-09  Peter Stephenson  <pws@csr.com>
+
+	* 16422: Functions/Misc/zcalc: fix output in bases when
+	base is specified for a single line.
+
 2002-01-08  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 16418: Src/lex.c, Src/Zle/zle_tricky.c: fix completion after
diff --git a/Functions/Misc/zcalc b/Functions/Misc/zcalc
index 633a38e92..31ab11dba 100644
--- a/Functions/Misc/zcalc
+++ b/Functions/Misc/zcalc
@@ -173,7 +173,7 @@ while vared -cehp "${(%)ZCALCPROMPT}" line; do
       line=
       continue
     else
-      base=
+      base=$match[1]
     fi
   else
     base=$defbase