On Sun, 20 May 2018 10:14:13 +0200 Philipp Kern <pk...@debian.org> wrote: > So the way it works with your patch is that local variables are > inherited by called functions (but not the caller). So from and dest > from just_get() are visible in wgetprogress() and hence the construction > of $@ works. I'd rather have $dest and $from be explicit parameters to > wgetprogress. Given that you reset $@ anyway I don't see how that'd hurt.
Hmm, but if I don't put $dest and $from to $@ and other parameters are empty, then it would be extracted as '' and wget will fail. -- Regards, Hideki Yamane henrich @ debian.org/iijmio-mail.jp