Hello, * Dan McGee wrote on Sun, Jan 30, 2011 at 01:04:17AM CET: > On Sat, Jan 29, 2011 at 5:58 PM, Chet Ramey <chet.ra...@case.edu> wrote: > > On 1/25/11 10:08 PM, Peter O'Gorman wrote: > >> for lt_wr_arg > >> do > >> case \$lt_wr_arg in > >> --lt-*) ;; > >> *) set x "$@" "$lt_wr_arg"; shift;; > >> esac > >> shift > >> done
> > This is a terribly inefficient function. Only if bash implements it inefficiently. It doesn't have to scale nonlinearly with an efficient shell implementation that special-cases this idiom which is, by the way, used quite a bit in Posix shell scripts. > > Why not use what bash gives you? > Probably because this is not a bash-specific script but designed to > run in any sh interpreter. Exactly. Thanks, Ralf