I installed Golang into a custom folder under $HOME called .go/exec . After the installation, it put the binary under $HOME/.go/exec/go . So I updated $PATH to contain this directory: $HOME/.go/exec:$PATH . Here is the question: When I execute a command by entering the path manually, it works without any issues: ~/.go/exec/go/bin/go version However, with $PATH it does not work: go version # zsh: permission denied: go I am logged in with $USER ,...
Originally asked by Berk Açıkgöz on Stack Exchange (unix) (CC BY-SA 4.0).