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.
This commit is contained in:
James Spencer 2011-07-03 08:47:17 +01:00
commit 1cf3c85f0a

View file

@ -84,7 +84,7 @@ fi
NAME="-S $PKG" NAME="-S $PKG"
# Zero out $NAME if user has specified a session name # Zero out $NAME if user has specified a session name
for i in "$@"; do 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 done
# Now let's execute the backend! # Now let's execute the backend!
if [ "$#" = "0" ]; then if [ "$#" = "0" ]; then