The Fish shell is launched in a subshell instead of being launched directly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
New
|
Undecided
|
Unassigned |
Bug Description
byobu version 5.133
tmux 3.3a
Hi, the process tree with fish is:
─ tmux│tmux: server│ -u -2 -f /usr/share/
├─ fish -c 'htop'
│ └─ htop
├─ fish -c /usr/bin/fish
│ └─ fish
├─ fish -c /usr/bin/fish
│ └─ fish
└─ fish -c /usr/bin/fish
└─ fish
The process tree with bash is:
─ tmux│tmux: server│ -u -2 -f /usr/share/
├─ htop
├─ bash│/bin/bash
├─ bash│/bin/bash
└─ bash│/bin/bash
The only difference between these two trees is:
chsh -s /bin/bash
chsh -s /usr/bin/fish
Memory consumption with fish is therefore double what is expected.
Proposed fix:
in the file $BYOBU_ PREFIX/ share/byobu/ profiles/ tmux
replace line 70:
set -g default-command $SHELL
by:
set -g default-command 'exec $SHELL'