Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] [[:blank:]] only matches on SPC and TAB



On Wed, 16 May 2018 14:15:47 +0100
Stephane Chazelas <stephane.chazelas@xxxxxxxxx> wrote:
> 2018-05-15 21:06:01 +0200, Oliver Kiddle:
> [...]
> > For consistency with the other character classes, I think the best
> > is to follow POSIX and the other shells and have [:blank:] call
> > iswblank(). That is apply the patch plus whatever change the
> > documentation needs to reflect it.  
> [...]
> 
> 3rd version of the patch with doc update and check for
> isblank().

Probably slightly better with the patch than without, in an imperfect world.

Is iswblank() guaranteed to be available?  It's covered by an extra set
of #ifdef's compared with the isblank() case but none of them is forcing
it to use C99 standard headers.

pws



Messages sorted by: Reverse Date, Date, Thread, Author