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
  • 41,268
eng_ahmed
  • 39
  • 1
  • 5

1 Answers1

1

To view your current shell use:

echo $0

$SHELL prints the default shell.

David Foerster
  • 36,890
  • 56
  • 97
  • 151