0

If I run zsh inside bash (on macOS Sierra), why does $SHELL still point to /bin/bash, rather then /bin/zsh?

$ echo $SHELL
/bin/bash
$ zsh
% echo $SHELL
/bin/bash
Thomas
  • 4,225
  • 5
  • 23
  • 28
otto.poellath
  • 545
  • 1
  • 5
  • 9

1 Answers1

5

$SHELL should point to your login shell, not current shell. As in, grep $USER /etc/passwd - it shows you your login shell which is probably /bin/bash.

You need to change shell with chsh to make the change permanent.

Zlatko
  • 1,011
  • 2
  • 11
  • 21