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=mime-version:in-reply-to:references:date:message-id:subject:from:to;
        bh=1tQKVaa8LO8UNpAsUuWygWufdstRHL79Y0/phH80utA=;
        b=XEpLkk07LD6Lu6LeUOBfLHFWT9ieg8WNGHx4IJJ6koPp3y6KnS9dd0auHHCyHQyBjN
         MrmtClJ0l6+1Ceutfs14/MZFdkS8qI4o0ifZiGDTEyz8IOwIy2xNNs4nYxYua9EhSpNz
         6LRBubCTXipzXPitePWg7Kb9ZZts7NceG4H14AcnYoFeO3G033uDZmdPlvWxaXZt+1TV
         FyPGXKj9aWpCfS5eu4jp/VYxVrHoib9WynLMVGK7k+GSRTv4LpQTB0KnWfGohkqpvBrp
         X3bQmHEgmg4PVOvIro2WvPytrd2PVdGYw+zdyvtKQMy2zYA2Ed/BUx3D43dl4cbuElSP
         m2HA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to;
        bh=1tQKVaa8LO8UNpAsUuWygWufdstRHL79Y0/phH80utA=;
        b=JqrCq0h1qvMLmj5x2AptKIumMV7b+l5uiutEYeY6Cpx56yWcgcmR5fCBUlWQBJkT5O
         cg3YAeuX4rvqWpEBDok2q22YwT9YIJWLUQDRIHpcHRqp2JqusOzaAUNADahwB+yk9Rej
         /TwO0xPkVDNRLvLrpP/b34LMQdf3YMN4qToy27tA6t0onMn2VPMN7y//xah1Wqd4iETC
         sq1J1UwtwIGrUIrG+4/xfjOS0XZm3VFXgdV1zKdPU2DU3XmYjIFudAxgFDEHjXhIV4Zm
         ssUdOQT4fIPZieUQd9KcTosXSv747BOz6N2sAUlBXNezBTyrN4mWyqwT/Y+0dswUN00l
         qVZw==
X-Gm-Message-State: AOPr4FUsH9gFQJ78Zi1joN+0Dky+Sz8qbXu3dckoziq0ds6JaYZ5gciVPkngUdETSPDTge9pNr83+mJZ8/0qhw==
MIME-Version: 1.0
X-Received: by 10.25.134.138 with SMTP id i132mr10341210lfd.70.1461988288179;
 Fri, 29 Apr 2016 20:51:28 -0700 (PDT)
In-Reply-To: <20160430012828.GA3334@tarsus.local2>
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>
Date: Fri, 29 Apr 2016 20:51:28 -0700
Message-ID: <CAH+w=7b9kKY1Xr5YHFHMS4YzSptJWwU_N6p+s3R=Q=QjYYSo3w@mail.gmail.com>
Subject: Re: Bug in C02cont.ztst's -N test
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Content-Type: text/plain; charset=UTF-8
X-Seq: zsh-workers 38373

We're gong to have to add "useless use of anonymous function" to go
with "useless use of cat".

On Fri, Apr 29, 2016 at 6:28 PM, Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> Matthew Martin wrote on Fri, Apr 29, 2016 at 20:01:31 -0500:
>> +  elif sleep 58; [[ $unmodified_ls == "$(ls -lu $unmodified)" ]]; then
>>
>> but who wants to sleep for 60 seconds? (There's a sleep 2 earlier.)

Is there some magic reason it has to total 60 seconds?

>     elif ! () {
>              repeat 58 {
>                sleep 1
>                if [[ $unmodified_ls != "$(ls -lu $unmodified)" ]]; then return 0; fi
>              }
>              return 1
>            }; then

elif ! repeat 60; do sleep 1; ZTST_hashmark; [[ $unmodified_ls !=
"$(ls -lu $unmodified)" ]] && break; done; then

