Menu

#1 Problem with numerical input base

open
nobody
None
5
2013-01-25
2006-10-05
Anonymous
No

It looks as if the code for handling different input
basis is slightly broken if the basis is at least 20.
No big deal probably, but maybe worth a patch.
Example:

% echo $[11#10]
11
# Correct
% echo $[11#11]
12
# Correct
% echo $[11#15]
16
# Correct
% echo $[11#19]
20
# Correct
% echo $[11#20]
22
# Should be 21
% echo $[[#20]11#20]
20#12
# Should be 20#11

You can join me at loic.grenie@gmail.com

Thanks for the wonderful shell by the way.

Loïc

Discussion