# HG changeset patch # User "Yann E. MORIN" # Date 1329166308 -3600 # Node ID 91017ae2151c3e0c007eacbce7d06cd55547de5e # Parent cea814c9932a10c985e648bde5c7c5c44bbe847a cc/gcc: do not consume parameters when parsing them The current construct consumes the parameters while we parse them. Change this to a construct that does not consume the parameters. This has no impact on gcc, but is done for homogeneity with other components (eg. glibc). Signed-off-by: "Yann E. MORIN" diff -r cea814c9932a -r 91017ae2151c scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Mon Feb 13 21:47:25 2012 +0100 +++ b/scripts/build/cc/gcc.sh Mon Feb 13 21:51:48 2012 +0100 @@ -122,10 +122,10 @@ local -a extra_config local -a core_LDFLAGS local -a core_targets + local arg - while [ $# -ne 0 ]; do - eval "${1// /\\ }" - shift + for arg in "$@"; do + eval "${arg// /\\ }" done lang_opt=c