* usr/bin/byobu: LP: #791617

- fix "byobu -r session", zero out NAME if user has a -r
This commit is contained in:
Dustin Kirkland 2011-06-02 15:13:01 -04:00
commit ba9c1d2e80
2 changed files with 4 additions and 2 deletions

2
debian/changelog vendored
View file

@ -5,6 +5,8 @@ byobu (4.9) unreleased; urgency=low
- added to the byobu repository for source control, but not yet - added to the byobu repository for source control, but not yet
QA'd for release, so they're not yet installed by the makefiles QA'd for release, so they're not yet installed by the makefiles
or documented; will get to this eventually or documented; will get to this eventually
* usr/bin/byobu: LP: #791617
- fix "byobu -r session", zero out NAME if user has a -r
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 01 Jun 2011 09:24:50 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Wed, 01 Jun 2011 09:24:50 -0500

View file

@ -91,9 +91,9 @@ else
PROFILE="-c $BYOBU_PREFIX/share/$PKG/profiles/screenrc" PROFILE="-c $BYOBU_PREFIX/share/$PKG/profiles/screenrc"
fi fi
NAME="-S $PKG" NAME="-S $PKG"
# Zero out $NAME if user has specified a -S # Zero out $NAME if user has specified a screen session name
for i in "$@"; do for i in "$@"; do
case $i in -*S|-ls|-list) NAME= ;; esac case $i in -r|-*S|-ls|-list) NAME= ;; esac
done done
# Now let's execute screen! # Now let's execute screen!
if [ "$#" = "0" ]; then if [ "$#" = "0" ]; then