byobu+tmux 2 'who am i' command does not work

Bug #1576591 reported by shakeel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Invalid
Wishlist
Unassigned

Bug Description

Using Ubuntu 14.04.03 LTS

There was a bug in older version of tmux prior to version 2 where 'who am i' would return blank from within byobu/tmux

I used the repository ppa:byobu/ppa to upgrade the version of tmux and byobu.

The command 'who am i' now works from within byobu, but has stopped working from a normal terminal.

I need the output from 'who am i' to work from both the terminal and byobu. Any ideas on how to fix it?

strace tail output from tmux2 running who -m:

ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 7), ...}) = 0
readlink("/proc/self/fd/0", "/dev/pts/7", 4095) = 10
stat("/dev/pts/7", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 7), ...}) = 0
close(1) = 0
close(2) = 0
exit_group(0) = ?
+++ exited with 0 +++

strace tail from tmux1.8.5 running who -m:

ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
readlink("/proc/self/fd/0", "/dev/pts/1", 4095) = 10
stat("/dev/pts/1", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
stat("/dev/pts/1", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe2d4794000
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0\0\0\0"..., 4096) = 3661
lseek(3, -2338, SEEK_CUR) = 1323
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10\0\0\0\0"..., 4096) = 2338
close(3) = 0
munmap(0x7fe2d4794000, 4096) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe2d4794000
write(1, "shakeels pts/1 2016-04-28"..., 46shakeels pts/1 2016-04-28 15:45 (:0.0)
) = 46
close(1) = 0
munmap(0x7fe2d4794000, 4096) = 0
close(2) = 0
exit_group(0) = ?
+++ exited with 0 +++

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I'm sorry, I have no idea why "who am i" doesn't work outside of Byobu (but I have confirmed that is the case). I just can't fix that for you :-)

Changed in byobu:
importance: Undecided → Wishlist
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.