From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 611 invoked by alias); 11 Jul 2016 20:08:11 -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: 38831 Received: (qmail 21364 invoked from network); 11 Jul 2016 20:08:11 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-expgw.biglobe.ne.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(133.208.98.3):SA:0(-1.3/5.0):. Processed in 0.100663 secs); 11 Jul 2016 20:08:11 -0000 X-Spam-Status: No, score=-1.3 required=5.0 X-Spam-Level: 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: Date: Tue, 12 Jul 2016 05:08:07 +0900 Content-Transfer-Encoding: 7bit Message-Id: <1608492B-D4BE-417A-B278-FECCE0887E11@kba.biglobe.ne.jp> 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: 49196 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$