Skip to content

[BUG] Switch shell script: chsh fails. #1217

@luigimasdea

Description

@luigimasdea

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

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

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions