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

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



On Mon, May 14, 2018 at 9:31 AM, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> Maybe seeing Zsh as a platform is a way.

That only works for native zsh mode.  In other emulations, zsh ought
to behave either the way other shells on the same OS do, or as the
POSIX spec requires, to the extent that is both possible and sane.  In
this case we have to decide whether it is reasonable to make a
distinction.

> (BTW., [ $'\t'] doesn't work in [[ ... ]], the
> space needs to be backslashed).

Just put the space inside the quotes:  [$' \t']



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