On 06/12/2019 11:00, Jones De Andrade 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.
What am I missing here? Wasn't it supposed to work?
Ask the right questions: anton@main:~> echo $SHELL /bin/bash anton@main:~> tcsh Directory: /home/anton /home/anton> echo $SHELL /bin/bash /home/anton> echo $shell /bin/tcsh /home/anton> set |tail shlvl 2 showdots 1 status 0 symlinks ignore tcsh 6.20.00 term xterm-256color tty pts/2 uid 501 user anton version tcsh 6.20.00 (Astron) 2016-11-24 (x86_64-unknown-linux) options wide,nls,lf,dl,al,kan,sm,color,filec /home/anton> -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org