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:
parent
973e5dc37d
commit
965d7305e5
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue