linux shell copy paste将〜0和1~符号添加到字符串中

时间:2023-01-16 23:40:27

I am running Ubuntu 16.04. Lately, I experience the following strange behavior when copy pasting via the clipboard, e.g. let's say I want to clone some repository. So, I copy the following string:

我正在运行Ubuntu 16.04。最近,当通过剪贴板复制粘贴时,我会遇到以下奇怪的行为,例如:假设我想克隆一些存储库。所以,我复制以下字符串:

"https://github.com/tensorflow/tensorflow"

And then paste it to my shell after a git clone using ctrl+shift+v. I would expect:

然后使用ctrl + shift + v在git clone之后将其粘贴到我的shell中。我希望:

$ git clone https://github.com/tensorflow/tensorflow

$ git clone https://github.com/tensorflow/tensorflow

But instead I see

但相反,我明白了

$ git clone ~0https://github.com/tensorflow/tensorflow1~

$ git clone~0https://github.com/tensorflow/tensorflow1~

This does not happen all the time and I have not yet figured out, what causes this annoying behavior. Anyone else experiencing this and has someone found out how to get rid of it?

这不会一直发生,我还没想到,是什么导致这种烦人的行为。其他人遇到这种情况并且有人发现如何摆脱它?

1 个解决方案

#1


-1  

Try to find the solution here: http://midnight-commander.org/ticket/3207 TL;DR seems like bug in the Ubuntu packages. You can copy text selecting it with the mouse and pressing scroll button to paste, the way to avoid your troubles at now.

试着在这里找到解决方案:http://midnight-commander.org/ticket/3207 TL; DR似乎是Ubuntu包中的bug。您可以使用鼠标复制文本选择它,然后按滚动按钮粘贴,以避免您现在遇到麻烦。

#1


-1  

Try to find the solution here: http://midnight-commander.org/ticket/3207 TL;DR seems like bug in the Ubuntu packages. You can copy text selecting it with the mouse and pressing scroll button to paste, the way to avoid your troubles at now.

试着在这里找到解决方案:http://midnight-commander.org/ticket/3207 TL; DR似乎是Ubuntu包中的bug。您可以使用鼠标复制文本选择它,然后按滚动按钮粘贴,以避免您现在遇到麻烦。