wok-6.x rev 9598
busybox/httpd_helper.sh: local httpinfo variables
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 13 13:37:02 2011 +0200 (2011-04-13) |
parents | b0437daaa419 |
children | ba0a532b57c4 |
files | busybox/stuff/httpd_helper.sh |
line diff
1.1 --- a/busybox/stuff/httpd_helper.sh Wed Apr 13 13:28:56 2011 +0200 1.2 +++ b/busybox/stuff/httpd_helper.sh Wed Apr 13 13:37:02 2011 +0200 1.3 @@ -36,6 +36,7 @@ 1.4 httpinfo() 1.5 { 1.6 local i 1.7 +local j 1.8 local x 1.9 for i in SERVER_PROTOCOL SERVER_SOFTWARE SERVER_NAME SERVER_PORT AUTH_TYPE \ 1.10 GATEWAY_INTERFACE REMOTE_HOST REMOTE_ADDR REMOTE_PORT \ 1.11 @@ -47,14 +48,14 @@ 1.12 eval x=\$$i 1.13 [ -n "$x" ] && echo "$i='$x'" 1.14 done 1.15 -for n in GET POST COOKIE ; do 1.16 - for i in $($n) ; do 1.17 - if [ $($n $i count) -gt 1 ]; then 1.18 - for j in $(seq 1 $($n $i count)); do 1.19 - echo "$n($i,$j)='$($n $i $j)'" 1.20 +for x in GET POST COOKIE ; do 1.21 + for i in $($x) ; do 1.22 + if [ $($x $i count) -gt 1 ]; then 1.23 + for j in $(seq 1 $($x $i count)); do 1.24 + echo "$x($i,$j)='$($x $i $j)'" 1.25 done 1.26 else 1.27 - echo "$n($i)='$($n $i)'" 1.28 + echo "$x($i)='$($x $i)'" 1.29 fi 1.30 done 1.31 done