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=rw6W/5kJ1qZSHXGtl6qADglHn58v03UADKltS52YcDk=;
        b=wVyV+iW0S7S3j38wR7yuJXOWFHhkt2qy++wzwtrdwESjPZL3lyWREwOLP2BARpVOtd
         /6UL6xug1fcbpFoSiPDlz1XY718d9+TV+JtLPsQ377my5lzjf2ZAGFcSN0G8VRa4FD1P
         D7suxlOLuyIMIpqG3EXOCEBQie2LwcR9oNpEF7dfPORr2TakyQzPNFV6zgZUcDcDY/jR
         Kg84kQcioymxAD7IeW2iSpehJGqO2M0TtB2cbFioBsscEvxNDNU0WGAebbRRR1AR86Mv
         eTfKe/KU1ZD9zRLrSnOXVjz+ruxEGw4N9a2rsMEPPkjifSSObggScfGPdB2vQC+pXLuc
         Etbg==
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=rw6W/5kJ1qZSHXGtl6qADglHn58v03UADKltS52YcDk=;
        b=CBCZ4D0cEQXsq+4mp96Z+Nb1/1fTh93TJSuy/oGWrBnBG3aKz0C7jlfgnwkIS6SjZb
         kaH28iIm6jZBWyIMG1ZzdZZHVMnY871ch+Fi/D047fs8kzBf0XmoGnHNdi8cnETcRvIO
         qMeLR5JnhOpObHf9tpFET7VAjiNJBkdY3Q9c3ZjO0So73afgfHmQGiVUvyhW1QdOionX
         SPZbvEoe09yIK9DTSq9npshpkecRRn4YUfi+w9yrLfn+/knVfMHtGqLtGaPu/URE/6Rx
         HmWFRNL28elI/NxygiahiABJopLmFg/bocd+ZaRwb2DNcfPREQZmGQVyfNhORM+P6Tx4
         qs1w==
X-Gm-Message-State: AOPr4FX9hJeypGWlcOQ2K3inU+vF2Now0nKea9wJr9XkDpm1nrqDXMqWzEPIv84T6EIfmQ==
X-Received: by 10.98.51.132 with SMTP id z126mr50930199pfz.23.1462810869972;
        Mon, 09 May 2016 09:21:09 -0700 (PDT)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160509092158.ZM13643@torch.brasslantern.com>
Date: Mon, 9 May 2016 09:21:58 -0700
In-Reply-To: <FEE16E72-B6B1-4CDE-B32D-EB111C13240C@kba.biglobe.ne.jp>
Comments: In reply to "Jun T." <takimoto-j@kba.biglobe.ne.jp>
        "Re: Bug in C02cont.ztst's -N test" (May  9, 10:42pm)
References: <ufa1t5pl0yg.fsf@epithumia.math.uh.edu> 
	<160429131027.ZM22749@torch.brasslantern.com> 
	<ufashy4ghvy.fsf@epithumia.math.uh.edu> 
	<20160430004639.GA1360@tarsus.local2> 
	<20160430010131.GA34472@CptOrmolo.darkstar> 
	<20160430012828.GA3334@tarsus.local2> 
	<CAH+w=7b9kKY1Xr5YHFHMS4YzSptJWwU_N6p+s3R=Q=QjYYSo3w@mail.gmail.com> 
	<160430105547.ZM10892@torch.brasslantern.com> 
	<160430111131.ZM11437@torch.brasslantern.com> 
	<FEE16E72-B6B1-4CDE-B32D-EB111C13240C@kba.biglobe.ne.jp>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: Bug in C02cont.ztst's -N test
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 38448

On May 9, 10:42pm, Jun T. wrote:
}
} Moving 'touch $newnewnew' into the 'else' block causes a problem
} on a system where the test for -N is skipped, for example Cygwin.
} The file newnewnew is not created at all, and the next test
}   [[ $newnewnew -nt $zlnfs && ! ($unmodified -nt $zlnfs) ]] 
} fails.

Hrm.  My concern was that if we spend a full minute spinning to wait
for the noatime check, then $newnewnew won't be new new new *enough*
if it were created before that delay.  I hadn't noticed that there
were inter-dependent tests following later.

Do we need to "sleep 2" before touching $newnewnew, though?  Or could
that part stay in the "elif"?

