[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash-4.3.33 regexp bug

From: Greg Wooledge
Subject: Re: bash-4.3.33 regexp bug
Date: Thu, 5 Mar 2015 12:14:21 -0500
User-agent: Mutt/

On Thu, Mar 05, 2015 at 05:07:44PM +0000, Stephane Chazelas wrote:
> bash also supports \s, but that's more for [[:space:]] (so
> includes vertical spacing like CR, LF), and you need to use an
> intermediary variable:
> r='^some text:\s+([0-9.]+)'
> [[ $s =~ $r ]]

Woah!  What?  Where is *that* documented?  The only \s in the man page
is in PS1.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]