$ logout bash:logout:not login shell:use exit'


0

有时当退出shell(CLI)时,我收到此警告/错误消息:

s $ logout bash:logout:not login   shell:使用éexit'

发生这种情况有两次:

  1. 在我的远程服务器上,当我使用我创建的用户帐户登录时,当我尝试注销时,我收到了该错误

  2. 今天(第一次),我正在尝试使用openssl加密文件,并意外地将二进制文件的输出传送到stdout。我要按Ctrl-C来打破流。之后,当我尝试注销时出现此错误:

s $ logout bash:logout:not login   shell:使用éexit'

注意到奇怪的人物?

有谁知道发生了什么以及我如何解决这个问题?

顺便说一下,我正在运行Ubuntu Lucid(10.0.4 LTS)

Answers:


3

你的问题来自管道二进制文件到stdout。

病人:医生,我这样做会很疼。

医生:不要那样做。

只需使用 reset 每当你弄乱终端设置时命令。


呵呵,我喜欢你的比喻 - 但是,我已经知道将二进制文件传递到stdout会导致屏幕上出现奇怪的字符......我不明白的是我尝试注销时收到的消息。我想要筛选的二进制数据是红鲱鱼。我真正的问题是,当我尝试从shell命令注销时,为什么有时会得到这个消息:'logout bash:logout:not login shell:use exit'?
morpheous

@morpheus:我总是用 exit。你有时而不是其他人得到它的原因是,有时你不在登录shell中,有时你也不是。安慰?登录shell。嘘?登录shell。 Gnome下的Gnome终端?可能是一个非登录shell。 Bash在Bash下运行(你进入了 bash 在shell提示符下)?非登录shell。你炮轰了 vim:sh )?非登录shell。
Dennis Williamson
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.