Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Command execution



On Mon, Nov 15, 2021 at 2:33 PM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> [...] in your case the execution failed because of
> missing permissions (earlier check)

It didn't get that far: "command not found" error implies a failed
search in PATH.

  % echo 'echo "Hello world"' >my_script

  % my_script
  zsh: command not found: my_script

  % path+=($PWD)
  % my_script
  zsh: permission denied: my_script

  % chmod +x my_script
  % my_script
  Hello world

Roman.




Messages sorted by: Reverse Date, Date, Thread, Author