Darshit Shah <[email protected]> writes: > When wget is passed a filename as a commandline parameter, tilde expansion > is not carried out on it, though the function cmd_file clearly states that > this should happen.
Tilde expansion happens in the parser before cmd_file is invoked, similar to how the shells do it. See the function setval_internal_tilde. It would be wrong to do the expansion in cmd_file because then it would be expanded even for command-line options, where its the shell's job to do that. In fact, that would prevent you from accessing a directory named "~" using Wget's command line.
