Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
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,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;
        h=from:message-id:date:in-reply-to:comments:references:to:subject
         :mime-version;
        bh=wyhsWVPjBijSffGtyJvmhipH+lBf4Vjxg58LchB6Fbg=;
        b=BBUWLpOI9qnN/oz0ek4F50T9pZbWU+6CeXayRh1jkI3vcg2dX3yIb8lCc46C3HDgZt
         5G26nxTLUlR5f8nwC1vVuyOx4YcOEkBMOZHKgC4yicRSUScJx3ygfhqzwgKwP8ZJLH1l
         2TXR7glsGfcMUVag9LJQwxTdNImWauxWouCmWc12cn8LX7IRO89q1TTpK7Gjik8ptRZz
         KcMZ7rbMtGDXHgeENetTV8ShvpCegNEJmCy9trZoaRhtT5b+y29nXZY6R2sRv+ZD+dVa
         We2j/THI4js8j3FQNKqdH4r3oyZMxOyY1sSylZJLQs5R52sAtKpwStMzVIjYdcy9aW+e
         MT+g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:in-reply-to:comments
         :references:to:subject:mime-version;
        bh=wyhsWVPjBijSffGtyJvmhipH+lBf4Vjxg58LchB6Fbg=;
        b=f64SrfYVWdKeNEN34FLeL5VuG0kIxCGNTQLjoxqQleRxQ9bWxOAVr5DTrkBtswcCLy
         bjwK0e+bMmfGL09DH14YzWgWfP9zzrOcosajmyOxwi0N/8J3cChGrybpmok8GgRIQR7L
         I5lmV9jpSkrYfKzTFk+4Cnyxf4rDGDloh123eLRqZYjgq9BfcnOjt7Ymk7DUUhEXFrzg
         Nr7AnFkl7jvB6IOQ952Leqg+Fsync3A4dl2B/khxFicY8DHHkKoM1/bqf7i89xWHKGxZ
         X8/DFHmEssVQL6A5Aek3wBZfDF5aunyCuWpKCxwPf++iivRw0cxa6l2t8LEYYTi6B61B
         zGnA==
X-Gm-Message-State: ALyK8tJrQAtEYATDURcvmcRCSppCvrqNYxoO3nbeTxIUQeUZjssPVkhbJ2N592D0gBVodw==
X-Received: by 10.66.216.70 with SMTP id oo6mr24143575pac.39.1468256355828;
        Mon, 11 Jul 2016 09:59:15 -0700 (PDT)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160711095934.ZM13739@torch.brasslantern.com>
Date: Mon, 11 Jul 2016 09:59:34 -0700
In-Reply-To: <9516F748-A5C9-41D7-9739-A87B771551FD@kba.biglobe.ne.jp>
Comments: In reply to "Jun T." <takimoto-j@kba.biglobe.ne.jp>
        "Re: [BUG] Directory glob picks up running or already-run scripts on OS X" (Jul 11,  5:51pm)
References: <CEE58D57-A237-4451-8882-0AE0CE21DD58@gmail.com> 
	<CAH+w=7Y6GEJxa5LS4AeG5V5hsyUYJkSEEEMRnMSSJpLpRfLPXA@mail.gmail.com> 
	<9516F748-A5C9-41D7-9739-A87B771551FD@kba.biglobe.ne.jp>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: [BUG] Directory glob picks up running or already-run scripts on OS X
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 38828

On Jul 11,  5:51pm, Jun T. wrote:
}
} Near the end of statfullpath() (line 301 of glob.c), the access(2) system
} call is used to check whether the path is actually a directory:
} 	access(buf, F_OK)
} where buf is set to 'script1/.'; but it seems access(2) behaves quite
} strangely on OS X.
} On OS X 10.8.5 (Mountain Lion, a rather old version) I get the following

This is once again sounding vaguely familiar, as in, I think we ran
into problems with access() before.

What's curious is that this doesn't show up in zsh-5.0.8 as shipped
stock with El Capitan even though you find it in older versions of
OSX.  I grepped around and scanned changelogs looking for something
that may have changed in the configure-discovered compiler settings
but did not see anything that appeared related.

