[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Tilde expansion not carried out in file_cmd

From: Hrvoje Niksic
Subject: Re: [Bug-wget] Tilde expansion not carried out in file_cmd
Date: Thu, 14 Mar 2013 20:00:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Darshit Shah <address@hidden> 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

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]