I've got this simple script called test1, which I'm trying to execute in a bash shell using ./test1
Code:
#!/bin/tcsh
echo 'Hello world!'
But I can't get it to work. When I run it, nothing happens. I've checked and I definitely have tcsh in /bin. I also used
to make it executable. The script only works if I replace the top line with
instead. Am I missing something?
Any help is appreciated