On Fri, 06 Dec 2019 14:00:34 -0200 Jones De Andrade <00037991@ufrgs.br> wrote:
Dear all.
I'm having an issue with something I though would (or should) be a really dumb problem.
I have a long tcsh script (which I won't adapt to bash) to run on a bash system (which will not be modified into a tcsh system due to other scripts needs).
It would also be nice that the script runs with a syntax as simple as "./script_name.x".
So, I've thought about doing something as simple as writing:
#!/bin/tcsh
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.
What am I missing here? Wasn't it supposed to work?
It does work. Use something like environment variable setting to demonstrate that tcsh is running rather than bash.
Thanks a lot in advance for any help,
Regards
Jones
-- Jones de Andrade (jdandrade@iq.ufrgs.br) DFQ/IQ/UFRGS Lattes: http://lattes.cnpq.br/6675936210583999 Orcid: https://orcid.org/0000-0003-3429-8119 ResearcherID: https://publons.com/researcher/AAC-5337-2019/
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org