bug-wget
[Top][All Lists]
Advanced

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

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


From: Ángel González
Subject: Re: [Bug-wget] Tilde expansion not carried out in file_cmd
Date: Thu, 14 Mar 2013 22:44:45 +0100
User-agent: Thunderbird

On 14/03/13 20:15, Darshit Shah wrote:
> In fact I wrote this to specifically expand command line options, since
> bash     did not expand the tilde in the filename I gave through the
> command line.
> Here is the output I got.
>
> $ wget --post-file=~/vimrc www.example.com
>> --2013-03-15 00:31:54--  http://www.example.com/
>> POST data file ‘~/vimrc’ missing: No such file or directory
>>
> In case you say, that the shell should have handled this, I guess it's an
> issue with bash, and I must work upstream to resolve it.

The shell bash only expands ~ when it's preceded by whitespace. Try

 wget --post-file ~/vimrc www.example.com

As tilde expansion works the same for all programs, I don't think it should be 
changed in wget (although I also consider unlikely that bash would change it).





reply via email to

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