From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29480 invoked by alias); 15 May 2018 18:12:19 -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: 42781 Received: (qmail 15050 invoked by uid 1010); 15 May 2018 18:12:19 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr0-f178.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.178):SA:0(-2.5/5.0):. Processed in 0.945146 secs); 15 May 2018 18:12:19 -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=t3PSm0EsVxVsp00Vx2PvGEF/0F9XSTBGHVgBJn9XAVw=; b=Qa/McgKHqMirUOiqYrPwuSBZz3qtMk+OG6Vc5sYhRT5TleAa4Dv+B14ev7s2z3HKql dX3utsBX6cNe6hM5Glgrmbzi2mWPpUQT0T/Od/pNYvF+AVMkGUMImvjiI2YsvbMdleM0 p+8g6sDK4Gleu3jS+EGS3RwR9natToFsGIFqcGSjM3c123ZCrRuK/M7YDzaPL2LSOOwG KGmntY4dYf/6shVM9jhmpStYw5k2gqTEqfaptvZTloYDk2BkcaA/qnDjGNdNi6onyafv WFdDV3jeIqbM64MHgvYFfxoddF7epUU31nln1UhJgdY1vYuuZb6UcH8zlX0xzQLJ2iyQ zitQ== 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=t3PSm0EsVxVsp00Vx2PvGEF/0F9XSTBGHVgBJn9XAVw=; b=YqoxVQ3ZSOqp/Mp3qOWnQrBZ50qdNs5COE2CXIMhGumNVfsTe9wRfB+gn3r4flk9LH i2W7wjOLP77QcNk5f54sqtDq2vglSwESKMzXn6/fGFd+AYFZMs5/A6YhsIbRjzW0X8+r GZME4OqS+r5twYUhcKW31/Hk9wvL2BzcZ3Nu6vptlGLD/fxF355P52RoGsTCacG4a9DK DP3a53WbpFrLL3mwK7f8LZIFR2IiHFP9dB2f+GndsYyEkn4PeleFC8Wl4IEQhFPoLs81 mSni3h+sUQsC6/vkPLEJH0d/8usFGI3UMDrru+OIJzRKwc8wi5tz1vwH7YMBS+fAtji6 amxw== X-Gm-Message-State: ALKqPwdyIxWRV3GtLAhHDdNtjapIUl0rNCjgY5MmsYlggOQIeTRzmG0C bU17ZcazWs3pxLDZp/65o7KbrQ== X-Google-Smtp-Source: AB8JxZpwfUslU2RjOYr5eG6xCN0S6xXGUMvI3OhOVLMtvkA/rabM9+gCfS48o4ycyBc2xNThrOeMnA== X-Received: by 2002:adf:e4c8:: with SMTP id v8-v6mr10333897wrm.133.1526407934181; Tue, 15 May 2018 11:12:14 -0700 (PDT) Date: Tue, 15 May 2018 19:12:12 +0100 From: Stephane Chazelas To: zsh-workers@zsh.org Subject: Re: [PATCH] [[:blank:]] only matches on SPC and TAB Message-ID: <20180515181212.GA13171@chaz.gmail.com> Mail-Followup-To: zsh-workers@zsh.org References: <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> <20180514204228.GB19631@chaz.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180514204228.GB19631@chaz.gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Note a "theoretical" problem with not doing iswblank() is that [[:blank:]] is often used to parse the output of some commands. When POSIX specifies the output of a command (generally only in the POSIX locale) and that output has whitespace separated fields (like in the output of id, ls -l, wc...) the separators are one or more "blanks". So we need to be able to match *those* "blanks" which are the POSIX blanks. Now in practice, I don't know of any current implementation of any utility that would use anything but SPC or TAB in any locale, so it's only a "theoretical" point. Note that by some reading of the spec, and bash and yash have made such readings, when the spec says tokens are delimited by blanks, that's any blank in the locale. $ yash -c $'echo\u2006test' test In the case of bash, that only works "properly" with single-byte characters. -- Stephane