Hi everyone. On MacOS, both within the Terminal window in VS Code, as well as in a standalone terminal, whenever I try to run .\hello, I get an error saying “command not found”. However, when I double-click the executable file in MacOS Finder, it opens a Terminal window and runs without issue!
I have already done the following:
- Switch between Bash shell and ZSH in case the shell I was using had issues.
- Reset my PATH variables to default in case I had messed them up in the past
- Ensured (many times) that I was within the directory the executable is in on my CLI
- Added the folder the executable is in to the PATH in case that would help
- Googled and searched on this forum for others with similar issues and found nothing that helped
If anyone has any ideas they’d like to throw my way, I’d really appreciate it. Again, running the executables manually through the GUI works fine, but running it in a CLI fails every time.