-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Curl should expand ~
and env vars in ~/.curlrc
#2317
Comments
I think it's a fair suggestion. Since this is not a bug, we will probably close this issue soon unless someone wants to work on it at once. As explained here: https://curl.haxx.se/docs/bugs.html#TODO |
A very easy work-around for you is to instead do:
... as then the shell will expand it for you to the current home directory. I'm not convinced this is a feature curl really must have. |
Thanks for your feedback. Of course, Curl doesn't need this feature. But it was quite confusing when I stumbled upon this issue, because Git, ssh, vim, tmux, and probably others support this. The idea is to track my So your following workaround would not work since my
|
Added to the TODO file with the hopes that someone will work on it in a future. |
I've read https://curl.haxx.se/docs/knownbugs.html, https://curl.haxx.se/docs/todo.html, and https://curl.haxx.se/docs/manpage.html. Maybe I'm missing something. If so, please excuse me.
I did this
Curl does not expand
~
before running the command.I've tried the following content in
~/.curlrc
. None of them worked:--config "~/.curlrc_local"
--config '~/.curlrc_local'
config = ~/.curlrc_local
config = "~/.curlrc_local"
config = '~/.curlrc_local'
Same if I try to replace
~
by$HOME
.I expected the following
I expected to have HTTP headers.
When running the previous commands, I was expecting Curl to expand
~
into my home directory (here/home/morgan
) to parse my custom configuration.It does work well if:
~/.curlrc
before, obviously:curl/libcurl version
operating system
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 17.10 Release: 17.10 Codename: artful $ uname -a Linux xxx 4.13.0-32-generic #35-Ubuntu SMP Thu Jan 25 09:13:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: