Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug in C02cont.ztst's -N test



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@xxxxxxxxxxxxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author