Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

After I reattach screen session :

screen -DR already_attached_session

My previous terminal is broken with broken bash:

[remote power detached]

Warning: Program '/bin/bash' crashed.

I can not recover it with Ctrl+C, Ctrl+Z, Ctrl+D.

Any idea what goes wrong and how can I avoid it ? (reattach properly)

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Try using the lowercase -d option instead of -D. The -D option is forceful.

share|improve this answer
    
It helped perfectly - thanks :) –  Grzegorz Wierzowiecki Nov 29 '11 at 9:47
add comment

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.