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