The Fish shell is launched in a subshell instead of being launched directly

Bug #1995865 reported by regivanx
6
This bug affects 1 person
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/byobu/profiles/tmuxrc new-session 'htop' ; rename-window htop ; new-window -n vi ; new-window -n shell ; split-window -h ;
  ├─ 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/byobu/profiles/tmuxrc new-session 'htop' ; rename-window htop ; new-window -n vi ; new-window -n shell ; split-window -h ;
  ├─ 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.

Revision history for this message
regivanx (regivanx) wrote :

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'

Revision history for this message
regivanx (regivanx) wrote :

Note that the fix is not complete.

when I create a new tmux window to launch an application, not a shell:

$ tmux new window vi

with fish: tmux runs a fish subshell which runs vi,

with bash: tmux runs vi directly

regivanx (regivanx)
description: updated
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.