From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29276 invoked by alias); 15 Sep 2017 05:35:42 -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: 41707 Received: (qmail 10972 invoked by uid 1010); 15 Sep 2017 05:35:41 -0000 X-Qmail-Scanner-Diagnostics: from mail-pg0-f50.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.83.50):SA:0(-1.4/5.0):. Processed in 3.209922 secs); 15 Sep 2017 05:35:41 -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.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,SPF_PASS, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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=q0AtCeSnH3iM/mvdnjSQcxtPRcD4b0/DoD58GKa95ug=; b=O+x0CL8jmApclruqC1LLKiepy9z4yGFY9cyrr9AsaxpRiR78NREzxQN6hHSg88ID9X 6R9cfB5DJSEaW7S52pdviSnXuh1GCSDE/ozJSrpbXMS1/7sjxiyPPl/uAcYwr+m2K9xc CXGztq+ZfDCoqLn74Xxmh1A9bqW0xMN1jdS/PVBE6cTg5RLWlSJ64gFKL3o/u6sMTPIb FH5i6JBevKRHR2XgY8ie9OA4VTM9+hWRkzCaCOWEbGb3m/AiY/iQiULJkVSHAAj7GGBh RtLxbH1zYJgNNFCsX8rTJlQXKdT9Z9wFhhboQaCOmTzZO0RtwYVDj43aivnX7vAybSbB /KkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=q0AtCeSnH3iM/mvdnjSQcxtPRcD4b0/DoD58GKa95ug=; b=dUqfqMLp0qY3cjaptljQlbNUZFYgB/veCAE+2/RBzGVF0tX7N+bbo/bt0SX8PZrr9Z WQgfs+SNAVk4cr09ryArVApz0MwFfaLvFutr8QjwToOp359cjC8WBSj5CMJn1WGCHd4i 1YbToUq3IO4RBiQK4Ght7F5+BO8MlOGkrMqPX1+N77DiAjJgXuBh5lycs6d/0cRO1z3X 5jHA5BsSNMik9InFfULrsIHoMoqYQwsSNgM/7QWedxz+4mD9t/QiSLws23aHQ8+c+1AA fQA+ENXMR6mKRmOgO6bOylPsYdj5D9oHJujfsc0asvzq+aFtpi9S8BxqyM1D3MlisUZo j8yA== X-Gm-Message-State: AHPjjUgr9smSIZzS3zDwTvG1wKAkRVLflgDiaVqlJeYfRn8MnEtjWzVs z8Cjyd3YSik80cU0slE= X-Google-Smtp-Source: ADKCNb7gxD2gxFvVayphsePHPkjAkCEmrpBTfnCq9bnYu+CEt4NDPK/g2kaqKV/b58WSVVxG0D4tjg== X-Received: by 10.99.103.66 with SMTP id b63mr15038017pgc.392.1505453732778; Thu, 14 Sep 2017 22:35:32 -0700 (PDT) From: Bart Schaefer Message-Id: <170914223536.ZM20107@torch.brasslantern.com> Date: Thu, 14 Sep 2017 22:35:36 -0700 In-Reply-To: <1505144460.3897287.1102296144.050A283F@webmail.messagingengine.com> Comments: In reply to Daniel Shahaf "Re: zsh: RM_STAR warning counts files as though DOT_GLOB is set" (Sep 11, 3:41pm) References: <20170911143436.GB1960@caska> <20170911150740.pz7fudj5lsflrmtk@tarpaulin.shahaf.local2> <1505143155.3891161.1102263072.1D722C8A@webmail.messagingengine.com> <20170911162337.630496ac@pwslap01u.europe.root.pri> <1505144460.3897287.1102296144.050A283F@webmail.messagingengine.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: zsh: RM_STAR warning counts files as though DOT_GLOB is set MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 11, 3:41pm, Daniel Shahaf wrote: } } The warning messages emitted by the "if" and "else if" branches are all } susceptible to this race condition. They were all added in 37946 in } order to "make [the] warnings more informative". IIRC this was discussed at the time, and the conclusion was that the race condition is acceptable as long as the user is prompted and must answer yes -- the count needn't be accurate when non-zero, it just mustn't be skipped when zero.