Package: tmux
Version: 2.9a-3

If tmux is removed (but not purged) and then reinstalled the
/usr/bin/tmux entry gets lost from /etc/shells.  This is because the
postinst calls add-shell only conditionally on first installs or
upgrades from an old version which did not add tmux to etc/shells.

I guess the purpose is to preserve local configuration and give the
local admin to the ability to remove the /usr/bin/tmux entry from
/etc/shells.  However, removing and then reinstalling a package is also
supposed to preserve its configuration, so we are between a rock and a
hard stone. :-(

Looking at what other shells do, bash and dash behave the same way as
tmux, but only really brave souls dare to remove either of those.  On
the other hand fish, ksh, mksh, rc, screen, tcsh and zsh call add-shell
unconditionally.

Thoughts?


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0-rc8-nouveau (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tmux depends on:
ii  libc6           2.29-1
ii  libevent-2.1-6  2.1.8-stable-4
ii  libtinfo6       6.1+20190803-1
ii  libutempter0    1.1.6-3+b1

tmux recommends no packages.

tmux suggests no packages.

-- no debconf information

Reply via email to