curl error

Hi, I have an issue with curl. I tried to execute this command. But it gave me the below output:
Code:
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \?       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'curl: no URL specified!curl: try 'curl --help' for more informationsh: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim: not found

I have curl installed in my terminal. I use tcsh

Thanks & Best Regards
Schroter
 
There is a ? character in your line.

Also, it should actually be 2 lines: the second line starts after the \ character.
Hi, Thanks. I did:
Code:
schroter@SCHROTER:~ % sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
curl: (3) URL using bad/illegal format or missing URL

Would you be able to let me know what is the issue here?

Thanks & Best Regards

Schroter
 
You still have the command on 1 line, when it is supposed to be 2 lines. If the command is not pasting correctly for some reason, copy and paste the first line, then copy and paste the second line. Or you can delete the \ character from the line.
 
You still have the command on 1 line, when it is supposed to be 2 lines. If the command is not pasting correctly for some reason, copy and paste the first line, then copy and paste the second line. Or you can delete the \ character from the line.
Hi, Thanks. I removed the \. Now it works.
Thanks & Best Regards
Schroter
 
Back
Top