Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Command execution
- X-seq: zsh-workers 49589
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: aismtnt@xxxxxxxxxxxx, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Command execution
- Date: Mon, 15 Nov 2021 14:39:52 +0100
- Archived-at: <https://zsh.org/workers/49589>
- In-reply-to: <CAHYJk3TWn1+SrBSNyaZypPfyeU7qmFm-XUF-5+m=ksP2Ni9=dQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <MoYOZpg--3-2@tutanota.com> <CAHYJk3TWn1+SrBSNyaZypPfyeU7qmFm-XUF-5+m=ksP2Ni9=dQ@mail.gmail.com>
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