On 3/5/15 12:36 PM, Greg Wooledge wrote: > On Thu, Mar 05, 2015 at 05:26:00PM +0000, Stephane Chazelas wrote: >> The bash manual only points to regex(3). >> >> So it's down to your system's regex library (uses >> regcomp(REG_EXTENDED)) which on recent GNU systems supports \s. > > I see. So it's another nonportable feature like printf '%(%s)T'.
It's an imperfect world. I'd rather not replace the system's regexp library, just like I'd rather use the system's strftime(3) if it's available. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/