ian_bruce@fastmail.net wrote:
> +decimal_units=(1 1000 1000000 1000000000 1000000000000) # (10^3)^{0,1,2,3,4}
I hate to bring this news, but this cannot be used in the installer, because
shell arrays are a bashism, and the installer uses busybox sh.
joey@gnu:~>busybox sh
BusyBox v1.20.2 (Debian 1:1.20.0-6) built-in shell (ash)
Enter 'help' for a list of built-in commands.
~ $ decimal_units=(1 1000 1000000 1000000000 1000000000000)
sh: syntax error: unexpected "("
FWIW, it is possible, though painful to emulate shell arrays using eval,
or other tricks.
For example:
decimal_units_0=1
decimal_units_1=1000
index=1
eval echo \$decimal_units_$index
--
see shy jo
Attachment:
signature.asc
Description: Digital signature