I log into an Ubuntu server as one user, and then su
to an app-specific user to manage a Rails app. When I'm done and want to log out, it is normally convenient to enter controlD, but on this particular machine, I get a very odd error message:
bash: break: only meaningful in a `for', `while', or `until' loop
What would cause Bash to think I'm inside a loop trying to break
out?
This only happens with the "inner" (app-specific) user, not the "outer" user.
bind -X
does not show any custom key bindings for the app-specific user.
I didn't notice this before, but exit
has the same problem.
The app-specific user has a ~/.bash_logout
file with
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi