Hello, On Fri, 06 Dec 2019, Dave Howorth wrote:
On Fri, 06 Dec 2019 14:00:34 -0200 Jones De Andrade <00037991@ufrgs.br> wrote:
at the beggining of the script. However, since it failed, I tested and discovered that:
#!/bin/tcsh echo $SHELL
Would still tell me I'm in bash.
No, it tells you that the value of the SHELL variable is still bash, not which shell is actually running.
To wit: $ tcsh -c 'set | grep -i tcsh' command set | grep -i tcsh shell /bin/tcsh tcsh 6.20.00 version tcsh 6.20.00 (Astron) ... $ tcsh -c 'echo $shell' /bin/tcsh $ tcsh -c 'ls -l /proc/$$/exe' lrwxrwxrwx 1 dh dh 0 Dec 7 08:20 /proc/14346/exe -> /bin/tcsh HTH, -dnh -- Time is an illusion; lunchtime, doubly so. -- Ford Prefect -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org