From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11030 invoked by alias); 14 May 2018 06:44:39 -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: 42768 Received: (qmail 8968 invoked by uid 1010); 14 May 2018 06:44:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm0-f52.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.82.52):SA:0(-1.9/5.0):. Processed in 2.023669 secs); 14 May 2018 06:44:39 -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, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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:content-transfer-encoding :in-reply-to:user-agent; bh=D0K0DRQ33PMJcyKJZWDdSbUZTAXo9akIRfc5Af3LNYg=; b=FGgf/MKDOJlTulkR7tCTKewLi7hb4rv0lDCPwCPxN+dLov/HlCqFg1k8Bpmd506yt1 IhxpXXqM3YaVFS9WX9eyRna2vO5IGanZicTf/AlhqDcVnHGQ1hreus8QE8oxH0+fMObP ZwNFCjcVRcTv2VzEN6Mp7+rS9OZoB5HkAFVUWiJw0aNUapzlGnSo0SJwsmcP/1idfRFV Y3/kEpLFt6KvlnXKtOfKMrKJj3dVTYpjMKNlzoauMXx84p0n/jrTLVs5cGlGN2Ncp4U0 d0RGL6OQVGGnoszZ5lEYuvRd2Ii98hOBe9tc7o2vhyXDKWX7+eDPWoncl3LsFh/uK5nK sLyA== 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 :content-transfer-encoding:in-reply-to:user-agent; bh=D0K0DRQ33PMJcyKJZWDdSbUZTAXo9akIRfc5Af3LNYg=; b=DwGv61BZjy6c8ziChFwtlxWK7o67Lg/CbivWn0Bs6klTBKFSiyRDTmIGhAhYnFFK+R g3K6N0mZ1RmUsB+yQ/VtP0vM6JadyG7WmTDJDKXHwYRBSPosDFCwY7zybbb46H2Eqr9B KnWLJrbYRCDSGoRlC2E1Im5H/luHboisPsRJgfpqKe66f83a1uhZjTYrjjocjyJkeZBv PczjY0byAzfEJ9PtGKpEa3PghW2kAWsPHQer7BY4pwEFxxCAe5QyqHqDR7XGZWNT08FU /oOUlXVjDliNRnN5gwpMsmUPXyHV+Yg32WPOkxFEnQnqDs4TCz3/NFmU/S9cwpaMS1ZO DDhw== X-Gm-Message-State: ALKqPwdOyGuZIzOyE1sgEK1CVuFGDSsUseo7Z32aabqE1dojaW9/qLoR o8yt+LBqul2Q5o/xoZgzJwrxjQ== X-Google-Smtp-Source: AB8JxZqv6cWQSwUtu+NqDePp7fIU+P6mTINdBoNLQzsjwPhybiUoHna+PyMj5FPqJ+iy8F+l5NSv8A== X-Received: by 2002:a1c:f52:: with SMTP id 79-v6mr4495570wmp.24.1526280273433; Sun, 13 May 2018 23:44:33 -0700 (PDT) Date: Mon, 14 May 2018 07:44:31 +0100 From: Stephane Chazelas To: Sebastian Gniazdowski , Zsh hackers list Subject: Re: [PATCH] [[:blank:]] only matches on SPC and TAB Message-ID: <20180514064431.GB7263@chaz.gmail.com> Mail-Followup-To: Sebastian Gniazdowski , Zsh hackers list References: <20180513212553.GA29028@chaz.gmail.com> <20180514063611.GA7263@chaz.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180514063611.GA7263@chaz.gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) 2018-05-14 07:36:11 +0100, Stephane Chazelas: [...] > That struck me as very odd when I found that out yesterday and > is inconsistent with all other shells. But because that meant > extra code was added for that, I wondered if maybe that was > intentional. [...] Looking at the Changelog, I see: Tue Oct 13 21:42:47 1998 Andrew Main * Doc/Zsh/expn.yo, Src/glob.c: Add the [:blank:] character class required by POSIX, which has no corresponding ctype macro. * Doc/Zsh/expn.yo, Misc/globtests, Src/glob.c, Src/lex.c: Add POSIX globbing character classes ([:alnum:] etc.). (pws, 4209+4212) Which explains why it's not using isblank() and strongly suggests that it was not intentional. Looking at POSIX: http://pubs.opengroup.org/onlinepubs/9699919799.2018edition/functions/isblank.html > First released in Issue 6. Derived from the ISO/IEC 9899:1999 standard. So it's /relatively/ recent (late 90s). Do we also need an autoconf check for isblank() or can we assume that all systems zsh is supported on have it? -- Stephane