Skip to content
Browse files

32453: fix zcalc default base handling

  • Loading branch information...
1 parent 973e5dc commit 965d7305e57b9b1a009af71368fcbf6da4e756a8 Peter Stephenson committed Mar 1, 2014
Showing with 3 additions and 1 deletion.
  1. +2 −0 ChangeLog
  2. +1 −1 Functions/Misc/zcalc
View
2 ChangeLog
@@ -1,5 +1,7 @@
2014-03-01 Peter Stephenson <p.w.stephenson@ntlworld.com>
+ * 32453: Functions/Misc/zcalc: fix default base handling.
+
* Manuel Presnitz: 32412 modified c.f. 32415:
Completion/Zsh/Type/_globquals, Doc/Zsh/expn.yo, Src/glob.c,
Src/zsh.h: gigabyte and terabyte units for glob qualifiers.
View
2 Functions/Misc/zcalc
@@ -197,7 +197,7 @@ while (( expression_mode )) ||
# Set default base if `[#16]' or `[##16]' etc. on its own.
# Unset it if `[#]' or `[##]'.
if [[ $line = (#b)[[:blank:]]#('[#'(\#|)((<->|)(|_|_<->))']')[[:blank:]]#(*) ]]; then
- if [[ -z $match[4] ]]; then
+ if [[ -z $match[6] ]]; then
if [[ -z $match[3] ]]; then
defbase=
else

0 comments on commit 965d730

Please sign in to comment.
Something went wrong with that request. Please try again.