dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[BUG] Switch shell script: `chsh` fails.

Open luigimasdea opened this issue 5 months ago • 1 comments

Describe the bug

chsh fails because, in the case of bash -> zsh switch, it takes as argoument which zsh, which returns /usr/sbin/zsh. The problem is that the zsh path in sbin is not in /etc/shells.

Steps to reproduce

  1. Install ML4W with Dotfiles Installer.
  2. Execute .config/ml4w/scripts/shell.sh
  3. The script executes chsh -s $(which zsh).
  4. which zsh returns /usr/sbin/zsh.
  5. /usr/sbin/zsh is not listed in /etc/shells, so chsh fails.

Expected behavior

chsh should take always /usr/bin/zsh as an argoument.

Screenshots

No response

Distribution

Arch Linux

If Other, specify

No response

Additional context

ML4W Version: Stable Release

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

luigimasdea avatar Sep 17 '25 16:09 luigimasdea

Thanks for testing. I will check.

mylinuxforwork avatar Sep 17 '25 19:09 mylinuxforwork