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

Re: [BUG] Directory glob picks up running or already-run scripts on OS X



Sorry, it is not necessary to run the script and atest (access(2)) from
within the same shell. Running the script by /usr/local/bin/zsh
is enough to 'cache' the info.

On El Captain:
bash$ ./atest foo/.
-1
bash$ /usr/local/bin/zsh -c ./foo
zsh:1: ./foo: bad interpreter: /bogus/command: no such file or directory
bash$ ./atest foo/.
0
bash$



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