curl error

Schroter

Member


Messages: 28

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
 

memreflect

Well-Known Member

Reaction score: 221
Messages: 257

There is a ? character in your line.

Also, it should actually be 2 lines: the second line starts after the \ character.
 
OP
S

Schroter

Member


Messages: 28

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
 

memreflect

Well-Known Member

Reaction score: 221
Messages: 257

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.
 
OP
S

Schroter

Member


Messages: 28

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
 
Top