mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 21:51:40 +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
|
@ -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.
|
||||
|
|
|
@ -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…
Reference in a new issue