On Fri, Apr 21, 2006 at 09:15:10AM +0100, robert w hall wrote:
the default kit wget is apparently 1.5.3 from 1998! I'd never even thought about upgrading it. (just like I never thought about upgrading vi/vim even though I use it a lot until quite recently)
I grabbed wget 1.10.2 and installed it, you have to compile it with gcc3.
So that it's available for anyone searching in future: in case upgrading wget is not an option, a shell wrapper could be used to remove the offending arguments before the real wget sees them. The following in $HOME/bin/wget (by which I mean, "earlier in $PATH that the real command") seems to work for me. == #!/bin/bash # wrapper to remove unwanted option+argument # before calling real_cmd # For when older version does not use newer option real_cmd=/usr/bin/wget count=0 while [ $# -gt 0 ] do case "$1" in --load-cookies) shift;shift ;; *) args[$count]="$1";shift ;; esac count=$(($count+1)) done "$real_cmd" "${args[@]}" == I used /bin/bash, but any bourne-alike with arrays should work -- quick tests on zsh, pdksh, and ksh here indicate they seem fine too. It's not a perfect replacement -- wget accepts unambiguous shorter versions of options which this one doesn't. And I think that wget accepts --load-cookies=file as well, so it can be just one argument. But current dillo usage doesn't do that. Because of that, it may be better to call this "dillowget" and adjust download*c to use that instead of wget in cases where it matters. For most people, of course, things will Just Work. But now google might help someone searching for "dillo download fails silently". Cheers, f -- Francis Daly francis@daoine.org