3

I am facing a problem related to the shell change, when I change the shell from bash to csh and type the comand echo $SHELL, I expect the shell to print:

/bin/csh

But instead it prints:

/bin/bash

What is the reason for that? How do I print the path to the currently running shell instead?

kos
  • 35,891

1 Answers1

1

To view your current shell use:

echo $0

$SHELL prints the default shell.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
Sergiy Kolodyazhnyy
  • 105,154
  • 20
  • 279
  • 497