Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sometimes when login out of the shell (CLI), I get this warning/error message:

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

There are two times when this happens:

  1. On my remote server, when I login using a user account that I created, when I try to logout, I get that error

  2. Today (first time), I was experimenting with using openssl to encrypt files and accidentally piped the output of a binary file to stdout. I ha to press Ctrl-C to break the stream. after that I got this error when I tried to logout:

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

notice the strange characters?

Does anyone know what is going on and how I may fix this?

BTW, I am running Ubuntu Lucid (10.0.4 LTS)

share|improve this question

1 Answer 1

Your problem comes from piping binary files to stdout.

Patient: Doctor, it hurts when I do this.

Doctor: Don't do that.

Just use the reset command whenever you mess up the terminal settings.

share|improve this answer
    
hehe, I like your analogy - BUT, I already knew that piping binary to stdout would cause strange chars on the screen... what I don't understand is the message I get when I try to logout. I suppose the binary data to screen is a red herring. My real question is why do I sometimes get this msg when I try to logout from a shell command: 'logout bash: logout: not login shell: use exit' ? –  morpheous Jul 13 '10 at 2:02
    
@morpheus: I always use exit. The reason you get it sometimes and not others is that sometimes you're not in a login shell and sometimes you are. Console? Login shell. Ssh? Login shell. Gnome-terminal under Gnome? Probably a non-login shell. Bash running under Bash (you entered bash at a shell prompt)? Non-login shell. You shelled out of vim (:sh)? Non-login shell. –  Dennis Williamson Jul 13 '10 at 2:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.