From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2347 invoked by alias); 30 Apr 2016 01:01:38 -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: 38370 Received: (qmail 8570 invoked from network); 30 Apr 2016 01:01:37 -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,FREEMAIL_FROM, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=miIep2ICYO0zAYqU5RtATqOcB2UHH+2r7AEDLNTpqGE=; b=CRPzWbb1uV4X1ZOsnPQbP3HlmTHkC9kug4MVpJDrsz2xYF667Y0URe6XBhoB+5UPsB 0DRdTqBpoe+oTyAVTNemSNiTsY1bjFidNhR4TPh1FIFjpieERnyqS0PVm6g2nmOdCj0r uMxW/1lI9l6u4JrBW/34i2ajlZ3VG7SSJTLS5lVeno6mVta8pj3aB2xbtuHIgWA+i/ds aU6rnEED8QcI2eUpZrX0AVAsjRDUOocf8NFf043a/d9WoL1ICLtxlfP+0gffx9A3f3Ni QY6aGiNS5Cmd7ERxUjwAytNQdvTJQxY8e3qIiwBAorEUEn+Nz3a4l4NDPkDcuWyRchu/ 0C6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=miIep2ICYO0zAYqU5RtATqOcB2UHH+2r7AEDLNTpqGE=; b=WZCkuQfhE88GOrXKWUgQEICHhzDVrnCG7YAE5cNk2UtnclaVAj4KZIynLPGE38Ykbz L3YXhl5OVgNMmNMb0154Dyq9ijuto52zTFN2AjsN1ES4PlqHBHB2c5QfIWxpdzpdjviL JZwGz/icLNDznxxJUAUdg4bWu0vDPc3MTvnrwR8xkQP/KinwKEudoJ6Gs3rmQg1FRSwN tnFWxLOCBkv4omOByGLl3W9JuuspPJfdmZXcCpIwyjsvwZY1IxCVRjTmXiDQPF8QKvWx lN8D0dUuXBuQt9v9XCgN+qNgDDFwa4ji2hUIz4354tL9feH8Y5wIZvuQ1HZ84GCNTIBh HyGQ== X-Gm-Message-State: AOPr4FUra23xq/VuN/Bp1qrcU8ZL2Nau+8PZNMqy5U9ybx4bTgz29wVomrqnKsFya2Doyg== X-Received: by 10.157.42.161 with SMTP id e30mr11632621otb.39.1461978094148; Fri, 29 Apr 2016 18:01:34 -0700 (PDT) Date: Fri, 29 Apr 2016 20:01:31 -0500 From: Matthew Martin To: Daniel Shahaf Cc: zsh-workers@zsh.org Subject: Re: Bug in C02cont.ztst's -N test Message-ID: <20160430010131.GA34472@CptOrmolo.darkstar> References: <160429131027.ZM22749@torch.brasslantern.com> <20160430004639.GA1360@tarsus.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160430004639.GA1360@tarsus.local2> User-Agent: Mutt/1.6.0 (2016-04-01) On Sat, Apr 30, 2016 at 12:46:39AM +0000, Daniel Shahaf wrote: > Bonus points if there's a way to write the condition portably without > relying on _other_ zsh functionality... That was discussed on IRC last night. diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index 88cad0d..8343fe2 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -23,6 +23,7 @@ zlnfs=${filetmpprefix}zlnfs touch $unmodified + unmodified_ls="$(ls -lu $unmodified)" touch zerolength chgrp $EGID zerolength @@ -154,7 +155,7 @@ ZTST_skip="[[ -N file ]] not supported on Cygwin" elif (( isnfs )); then ZTST_skip="[[ -N file ]] not supported with NFS" - elif { df -k -- ${$({mount || /sbin/mount} | awk '/noatime/ {print $1,$3}'):-""} | tr -s ' ' | fgrep "$(df -k . | tail -1 | tr -s ' ')" } >&/dev/null; then + elif sleep 58; [[ $unmodified_ls == "$(ls -lu $unmodified)" ]]; then ZTST_skip="[[ -N file ]] not supported with noatime file system" else [[ -N $newnewnew && ! -N $unmodified ]] but who wants to sleep for 60 seconds? (There's a sleep 2 earlier.) - Matthew Martin