From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7582 invoked by alias); 9 May 2016 16:21:13 -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: 38448 Received: (qmail 9669 invoked from network); 9 May 2016 16:21:11 -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,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 Message-Id: <160509092158.ZM13643@torch.brasslantern.com> Date: Mon, 9 May 2016 09:21:58 -0700 In-Reply-To: Comments: In reply to "Jun T." "Re: Bug in C02cont.ztst's -N test" (May 9, 10:42pm) References: <160429131027.ZM22749@torch.brasslantern.com> <20160430004639.GA1360@tarsus.local2> <20160430010131.GA34472@CptOrmolo.darkstar> <20160430012828.GA3334@tarsus.local2> <160430105547.ZM10892@torch.brasslantern.com> <160430111131.ZM11437@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "zsh-workers@zsh.org" Subject: Re: Bug in C02cont.ztst's -N test MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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"?