Following this question on "why do you need ./ (dot-slash) before executable or script name to run it in bash?", I would like to ask if I should specify ./
before the script name even when I specify the program which executes it.
For example, each one of the following works on my system (Windows 10 command-prompt):
node test.js
node ./test.js
node .\test.js
python test.py
python ./test.py
python .\test.py
But I need to provide instructions for my project, and so I would like to have something which is guaranteed to work regardless of the OS in use.
For the sake of this question, please assume that the OS can run the executable program (node
and python
in the examples above) from any path.