1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 17:20:25 +02:00

32453: fix zcalc default base handling

This commit is contained in:
Peter Stephenson 2014-03-01 21:27:47 +00:00
parent 973e5dc37d
commit 965d7305e5
2 changed files with 3 additions and 1 deletions

View file

@ -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