I have a script called setuptex that is run on a terminal as
I wanted to execute it from a bash script file instead of typing it each time on an interactive terminal.
Since the dot operator and the source builtin command are similar, and I wanted a simple one word command, I tried scripting it thus:
saved it in a file, and having made the file executable , executed it from a console. It does not seem to have any effect, whereas running the interactive version with the dot operator works as expected.
Can someone please explain why and also how to make the script file work as intended.