Shell won't start after fresh install

Have just freshly install manjaro (after messing up graphics drivers and deciding it was going to be quicker to wipe than to fix it).

It's going to sound a bit crazy but I can't get a shell to open. I can open the terminal (mod + enter) but if I type bash I don't get another shell. I was trying to install zsh and it says it's installed but that doesn't work either.

chsh -l output:

/bin/sh
/bin/bash
/bin/zsh
/usr/bin/zsh
/usr/bin/git-shell

What do you mean, what happens when you type bash?

....should anything if you are already running bash ?

Nothing happens. Nothing at all

Yes, it should open a new instance of bash.

Are you sure it isn't opening a new instance over the other one.

If you open a terminal and then do the below, what happens?

bash
exit

If everything is working it will leave you at a bash prompt. If it isn't working, your terminal will close.

...are we sure ?
if running a terminal running bash .. entering bash just returns to new input line. like enter
but if I run zsh it will start zsh session .. and then I can run bash to start a bash session.

Yes, I do it all the time.

It does exit. It doesn't give me any indication that I'm opening shell after shell though.

If I type

zsh

nothing happens

If I then type

echo $SHELL

I get /bin/bash

That is normal.

Put something that produces output in your .bashrc and it will be more obvious.

Ok thanks. Perhaps I'm just a bit confused as I would normally have some sort of feedback. Even before editing .bashrc etc.

I still can't get zsh to work though. Even when I go directly into that directory.

I've stopped the system from being able to open a shell a few times trying chsh

Some distros have some default output in there out of the box. uname -a or something similar.

What does this show:

ls -l /bin/zsh
file /bin/zsh
cat /etc/passwd | grep yourusername

ls -l /bin/zsh
-rwxr-xr-x 2 root root 0 Feb 16 17:55 /bin/zsh

file /bin/zsh
/bin/zsh: empty

cat /etc/passwd | grep username
username:x:1000:1000:Username:/home/username:/bin/bash

And yea. I did check passwd but changing to anything other than /bin/bash means the terminal won't start.

That seems bad.

Try reinstalling zsh.

sudo pacman -Syu zsh
.....
zsh: /usr/share/zsh/functions/Zle/replace-string exists in filesystem
zsh: /usr/share/zsh/functions/Zle/replace-string-again exists in filesystem
zsh: /usr/share/zsh/functions/Zle/select-bracketed exists in filesystem
zsh: /usr/share/zsh/functions/Zle/select-quoted exists in filesystem
zsh: /usr/share/zsh/functions/Zle/select-word-match exists in filesystem
zsh: /usr/share/zsh/functions/Zle/select-word-style exists in filesystem
zsh: /usr/share/zsh/functions/Zle/send-invisible exists in filesystem
zsh: /usr/share/zsh/functions/Zle/smart-insert-last-word exists in filesystem
zsh: /usr/share/zsh/functions/Zle/split-shell-arguments exists in filesystem
zsh: /usr/share/zsh/functions/Zle/surround exists in filesystem
zsh: /usr/share/zsh/functions/Zle/transpose-lines exists in filesystem
zsh: /usr/share/zsh/functions/Zle/transpose-words-match exists in filesystem
zsh: /usr/share/zsh/functions/Zle/up-case-word-match exists in filesystem
zsh: /usr/share/zsh/functions/Zle/up-line-or-beginning-search exists in filesystem
zsh: /usr/share/zsh/functions/Zle/url-quote-magic exists in filesystem
zsh: /usr/share/zsh/functions/Zle/vi-pipe exists in filesystem
zsh: /usr/share/zsh/functions/Zle/which-command exists in filesystem
zsh: /usr/share/zsh/functions/Zle/zcalc-auto-insert exists in filesystem
zsh: /usr/share/zsh/functions/Zle/zed-set-file-name exists in filesystem
zsh: /usr/share/zsh/scripts/newuser exists in filesystem
Errors occurred, no packages were upgraded.

How did you install zsh?

through pacman

Originally?

What does this return:

pacman -Qo /usr/share/zsh/functions/Zle/zed-set-file-name

error: No package owns /usr/share/zsh/functions/Zle/zed-set-file-name

The first time you installed zsh, did you do some type of manual install?

Forum kindly sponsored by