Hi, I can confirm the behaviour. '-d -r' makes screen start in two stages: first identifying and detaching the displays that are currently attached to the selected session, and then attaching itself. If the second '-d -r' starts to search for other displays before the first has successfully attached, it is effectively equivalent to '-x': it finds no other displays that should be detached, and attaches itself.
But is this really a bug? It would mean a decent amount of work to implement some locking mechanism to prevent this, and after all the effects are completely harmless. I'd like to close this one if you agree. Regards, Jan
signature.asc
Description: Digital signature