From 1cf3c85f0a3779215c5e9b7749a810233f5d7022 Mon Sep 17 00:00:00 2001 From: James Spencer Date: Sun, 3 Jul 2011 08:47:17 +0100 Subject: [PATCH] Don't override any name specified using the reattach and detach flags. Whilst -r has been supported since 4.13, specifying the screen to connect is broken if -dr is used to detach the screen first. Similar changes have been added for other options to screen which explicitly set the screen name. --- usr/bin/byobu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/byobu b/usr/bin/byobu index ef766c64..ad636908 100755 --- a/usr/bin/byobu +++ b/usr/bin/byobu @@ -84,7 +84,7 @@ fi NAME="-S $PKG" # Zero out $NAME if user has specified a session name for i in "$@"; do - case $i in -r|-*S|-ls|-list) NAME= ;; esac + case $i in -*r*|-*d*|-*D*|-*S*|-ls|-list) NAME= ;; esac done # Now let's execute the backend! if [ "$#" = "0" ]; then