On 03/14/2013 12:15 PM, 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.

Not an issue with bash, either. Tilde expansion is only performed at the
beginning of a word. Try replacing the "=" with a space; then bash will
expand it and your problem is solved (assuming you really have a file
named "vimrc" in your $HOME, instead of the more usual and useful ".vimrc".

-mjc


Reply via email to