I am running Cygwin terminal in Visual Studio Code (2019), and I tried to run hello.sh and hello.py file, but nothing gets printed out in the terminal. No error message either. I also tried to open a Cygwin terminal outside of Visual Studio, nothing gets printed out either.
However, I created the same files from Pycharm in a venv directory, and copied the files into my Cygwin directory -- it worked.
code in hello.py file:
print("hello world")
code in hello.sh file:
echo hello world
I run these files with the same commands in all of the aforementioned terminals:
./hello.sh
python hello.py
Output when I use hello.py and hello.sh files generated and copied from Pycharm:
hello world
Otherwise nothing goes on when run these two files from Cygwin.
I wonder how this happened and how to generate .py files and .sh that will work directly in VS Studio.
I have seen other threads mentioning a "command not found" error when running .sh files. It is not my case, since no error gets printed out.
Thanks!



diff hello.py pycharm/hello.py