(Sorry, I neglected to trim the recipients list in my reply and sent Steve and Bart duplicates.). 

I just have one addendum to my previous message:

On Fri, Jan 26, 2024 at 11:07 AM Mark J. Reed <markjreed@gmail.com> wrote:
So doing setopt pathscript has no effect whatsoever on what a subsequent /bin/zsh some_script will do. You have to do this instead:

/bin/zsh -o pathscript some_script

This is why the documentation for the PATH_SCRIPT option in zshoptions(1) points you to the INVOCATION section of the main zsh manual: the option is really only useful when specified on the command line.


--
Mark J. Reed <markjreed@gmail.com>