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,535
  • 13
  • 101
  • 151
eng_ahmed
  • 39
  • 5

1 Answers1

1

To view your current shell use:

echo $0

$SHELL prints the default shell.

David Foerster
  • 35,754
  • 55
  • 92
  • 145
Sergiy Kolodyazhnyy
  • 103,293
  • 19
  • 273
  • 492