mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
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:
parent
a21d06c63b
commit
1cf3c85f0a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue