Bug 12221

Summary: ash: BASE#nnnn" numeric literals broken
Product: Busybox Reporter: Ronald Wahl <ronald.wahl>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.31.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Ronald Wahl 2019-09-17 12:46:10 UTC
ash:
# echo $((16#10))
16
# echo $((16#a))
-sh: arithmetic syntax error

bash:
$ echo $((16#10))
16
$ echo $((16#a))
10
Comment 1 Ron Yorston 2020-01-25 12:45:25 UTC
Fixed by commit 3004510fd (ash: fix BASE##nn bashism to accept letter 'digits' for bases > 9) in release 1.31.1. (And by commit ca1ce4b9f in master.)