From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29373 invoked by alias); 14 May 2018 20:42:35 -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: List-Unsubscribe: X-Seq: 42780 Received: (qmail 20461 invoked by uid 1010); 14 May 2018 20:42:35 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr0-f180.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(209.85.128.180):SA:0(-2.5/5.0):. Processed in 0.533338 secs); 14 May 2018 20:42:35 -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=-2.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=FVIwSLFecfql1FNZjki7zkO33Jm/OIK4si1mQvGXJYk=; b=rh3bwtUOtFjY9hzgY+FjViEm1CpQC984IPF76rEOQdgjmwKh4e9IwqNV2GBwmVLlsX +Abb9z3YppaEO/u2oaQGxXztZ5Am9rUVH01StipJvtG74UBh3+MLNB9TC3a10gNFcESI HUUwJeBpbv/eufy6HcenGH1pxnvGBgdh3Nbh38uXmBeoMdz1ug5heDupROt2Y1J7079D VGW9B4+JdZCUetcuhFlz50E6blnmnXqGtf0/E5z7ysOvvXWfy4+WfAuc5eJKW7epUXzL 5dzlT04YIiBzxFvoM01iLGLvuWGCVPgm5sYkhQne+yM3Dkm5Y5DU45LLRPyBFlFJkv9J 1b4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=FVIwSLFecfql1FNZjki7zkO33Jm/OIK4si1mQvGXJYk=; b=awdSINro5X8HNTY1qLsqbceXZJY8vQVVVxxW49tw8J11jhqjSHbt59KLKxQQ3dOq02 W5B1AWYdBiNq/P6Ht5kCuuIxFa5p58PCqrPVzCBRuCtxdzOYxSPBnEggpiBeDnscsSoi 28c6JYbkuo8WWPKaqlx2dXwExeRCHlei850igPsmLwb6hlfJ6eMr6KWQKf8Geah30mAN IaO5oXVZpzv49VD4i3VHiBErWMleQoLWlnnLQHSo6umJjSqe49k3tWKGwjB0W+3cW5Zk c7NqB3FVji3b3snEJUELGdzTh1CrSx2gBIttEaSd9MQE4cYfLKKvSuZTKGT3ErSntHBh MDAA== X-Gm-Message-State: ALKqPwfDbfT+WPipEUzpqLJZrSU7W3kz/lcNv4XKt2julWbLPtdCsZq5 ww2cYxSOxDgFth4E3AW9TkDw/Q== X-Google-Smtp-Source: AB8JxZqA+Z6iHlRlK3L10qhheABAJq2OOS2wpzNDhgol/kevncDSGnA38LtfVsYY9RZOcQm9bXEBoA== X-Received: by 2002:adf:a294:: with SMTP id s20-v6mr7900382wra.114.1526330550653; Mon, 14 May 2018 13:42:30 -0700 (PDT) Date: Mon, 14 May 2018 21:42:28 +0100 From: Stephane Chazelas To: zsh-workers@zsh.org Subject: Re: [PATCH] [[:blank:]] only matches on SPC and TAB Message-ID: <20180514204228.GB19631@chaz.gmail.com> Mail-Followup-To: zsh-workers@zsh.org References: <20180514063611.GA7263@chaz.gmail.com> <20180514064431.GB7263@chaz.gmail.com> <20180514094733.308bff1a@camnpupstephen.cam.scsc.local> <20180514123425.GA19631@chaz.gmail.com> <20180514145056.3eedaea9@camnpupstephen.cam.scsc.local> <20180514155131.GC7263@chaz.gmail.com> <20180514195214.6lunkmugxwcatm7y@Daniels-MacBook-Air.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180514195214.6lunkmugxwcatm7y@Daniels-MacBook-Air.local> User-Agent: Mutt/1.5.24 (2015-08-30) I agree with Daniel here. Although I think I would prefer a [[:blank:]] that consistently matches SPC and TAB rather than something completely random ranging from SPC and TAB (the minimum required by POSIX) and whatever [[:space:]] matches (POSIX requires [:blank:] to be a subset of [:space:]), I don't think it's zsh's role to fix the POSIX character classes. There's also the question of the consistency between [[ $x = [[:blank:]] ]] (using zsh's own pattern matching implementation) [[ $x =~ [[:blank:]] ]] (using the system's EREs, so generally influenced by the locale) and the same with rematchpcre, that one only matching SPC and TAB regardless of the locale AFAICT with all the character classes only matching the minimum ASCII characters required by POSIX (as if using the C locale with wildcards or ERE). -- Stephane