I am using curl
on my Macos Catalina terminal app, and the text I enter in stdin gets altered on me pressing enter Enter. For a simple example:
curl -d " 印度是最好的 The weather is good" -X POST http://localhost:8000/questions/21/
curl: (1) Protocol "hhttp" not supported or disabled in libcurl
is actually entered as :
curl -d " 印度是最好的 The weather is good" -X POST hhttp://localhost:8000/questions/21/
, which I can see from previous command on terminal Control + P.
P.S - I've entered the command and thus, it shows libcurl error.
For an english sentence - you can see the error below:
I have no idea why this is happening, I'm using zsh shell and ohmyzsh
along with it - and this is happening the first time to me.
Adding an image here too, for further investigation.
My .zshrc configuration is here
.zshrc
; if you can't, you'll need to post your complete.zshrc
and all the files it loads. If you can reproduce it without Chinese text, it would help.curl
? If you press Up to edit the command line, does the extrah
appear? If you runfc
to edit the last command in an external editor, does the extrah
appear? Is the problem always with the letterh
or sometimes with other letters? Does the problem occur with everyh
or only some? Does the problem occur with other terminals such as iTerm?