* usr/bin/byobu.in:

- Use readlink if the tty command is not available
This commit is contained in:
Jeffery To 2019-05-27 03:17:23 +08:00
commit 02737c8f45
2 changed files with 7 additions and 1 deletions

2
debian/changelog vendored
View file

@ -24,6 +24,8 @@ byobu (5.128) unreleased; urgency=medium
usr/bin/byobu-janitor.in:
- Test if $HOME/.bashrc exists before modifying it (and potentially
creating it)
* usr/bin/byobu.in:
- Use readlink if the tty command is not available
* usr/lib/byobu/disk_io:
- Ensure the detected mount point device exists
* usr/lib/byobu/hostname:

View file

@ -62,7 +62,11 @@ esac
export BYOBU_BACKEND
# Store the parent tty
if eval $BYOBU_TEST tty >/dev/null 2>&1; then
export BYOBU_TTY=$(tty)
else
export BYOBU_TTY=$(readlink /proc/$$/fd/0)
fi
# Get the default window name
[ -n "$BYOBU_WINDOW_NAME" ] || BYOBU_WINDOW_NAME=-