[BusyBox] httpd CGI Forms Parameter Names
Vladimir N. Oleynik
dzo at simtreas.ru
Thu Sep 11 14:10:08 MDT 2003
Kianusch,
>>You're probably best off not using special characters in parameter names
>>with busybox httpd if you are using the CGI_vars feature. Since these
>>are ultimately passed to setenv it's best not to use special characters
>>for variable names.
>
>
> Yep - I agree ...
>
>
>>Note that if you use variable_1 variable_2 it would be easy enough to
>>convert them to arrays in your cgi shell script.
>
>
> Nope - I don't agree ... :-)
>
> At least not with the included shell in busybox (ash).
>
> I did not find a way to construct "dynamic variable names", like ...
>
> variable_1=1
> variable_2=2
> ...
> variable_6=6
>
> for i in 1 2 3 4 5 6
> do
> echo ${variable_${i}}
> done
You can use eval
> ... will also not work with ash ... but it works with bash or (pd)ksh.
> and (pd)ksh compiles to about 100k with uclibc :-)
>
> ksh is quite handy as it also supports calculations like
>
> x=1
> let x=$x+5
I realised this from one month old.
You used old version busybox ash. Please upgrading.
--w
vodz
More information about the busybox
mailing list