when I do gcc someFile.cpp -o test and then do ./test(a file which contains strange characters) it runs the program and when I make a bash script file nano test.sh and run it by ./test.sh it runs the bash script. How does the terminal know if the ./file is a bash file or C++ compiled code?
↧
how come './file' runs c++ program and also bash scripts? [closed]
↧