From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4844 invoked by alias); 11 Jul 2016 19:59:34 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38829 Received: (qmail 27459 invoked from network); 11 Jul 2016 19:59:33 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [BUG] Directory glob picks up running or already-run scripts on OS X From: "Jun T." In-Reply-To: <160711095934.ZM13739@torch.brasslantern.com> Date: Tue, 12 Jul 2016 04:18:30 +0900 Content-Transfer-Encoding: 7bit Message-Id: References: <9516F748-A5C9-41D7-9739-A87B771551FD@kba.biglobe.ne.jp> <160711095934.ZM13739@torch.brasslantern.com> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 49224 I tested on Mavericks (10.9.5) and El Capitan (10.11.5). On OS X 10.9.5, the behavior is the same as 10.8. But on 10.11.5, I can not reproduce the strange behavior of access(2) if I use bash or /bin/zsh (5.0.8, built by Apple). The problem exists only if I run the script and atest from /usr/local/bin/zsh (git HEAD, local build). The script itself (foo in my case) need not be a zsh script. It can be #!/bogus/command to reproduce the problem. I have no idea where the information that the script foo has been run is "cached", why it can affect the result of a system call.