Skip to content

chsh -s /snap/bin/powershell: powershell is an invalid shell #20962

Discussion options

You must be logged in to vote

Linux defines what shells are available by looking in /etc/shells, eg

$ tail -5 /etc/shells
/usr/bin/ksh93
/bin/rksh93
/usr/bin/rksh93
/opt/microsoft/powershell/7/pwsh
/usr/bin/pwsh

The PowerShell rpm and deb packages manage this entry on installation and removal.

I believe that Snap packages are self-contained, so in theory should not be able to interfere with global configuration files.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@RokeJulianLockhart
Comment options

@237dmitry
Comment options

@rhubarb-geek-nz
Comment options

Answer selected by RokeJulianLockhart
@RokeJulianLockhart
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants