From e1899ce97cbb906759657838381707b47bf0a018 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 13 Feb 2012 21:47:25 +0100 Subject: libc/glibc: do not consume parameters when parsing them Currently, there are two constructs used to parse arguments in glibc backends, one that consumes args as they are parsed, and one that does not. Always use the construct that does not eat args as they are parsed. Signed-off-by: "Yann E. MORIN" diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common index e4bb354..e3173eb 100644 --- a/scripts/build/libc/glibc-eglibc.sh-common +++ b/scripts/build/libc/glibc-eglibc.sh-common @@ -197,10 +197,10 @@ do_libc_backend_once() { local glibc_cflags local float_extra local endian_extra + local arg - while [ $# -ne 0 ]; do - eval "${1// /\\ }" - shift + for arg in "$@"; do + eval "${arg// /\\ }" done CT_DoLog EXTRA "Configuring C library" -- cgit v0.10.2-6-g49f6