summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/params.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4b94f6f27..f0d0970b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-09-04  Bart Schaefer  <schaefer@zsh.org>
+
+	* 12732: Src/params.c: Suppress base# prefix when base is 10 even
+	if the [##base] format of 12722 was not used.
+
 2000-09-03  Clint Adams  <schizo@debian.org>
 
 	* 12728: Completion/User/_man: complete _files instead of
diff --git a/Src/params.c b/Src/params.c
index 2d38272a6..93319dbfe 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -3049,8 +3049,10 @@ convbase(char *s, zlong v, int base)
 	    sprintf(s, "0x");
 	else if (isset(CBASES) && base == 8 && isset(OCTALZEROES))
 	    sprintf(s, "0");
-	else
+	else if (base != 10)
 	    sprintf(s, "%d#", base);
+	else
+	    *s = 0;
 	s += strlen(s);
     } else
 	base = -base;