|
From: | Oğuz İsmail Uysal |
Subject: | Re: bash "extglob" needs to upgrade at least like zsh "kshglob" |
Date: | Mon, 31 Oct 2022 15:51:25 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 |
On 10/31/22 2:20 PM, Greg Wooledge wrote:
Yeah, and offers no more than what your libc's regex engine has. For example, you can't tell what `[[ x =~ .{256} ]]' (or even `[[ x =~ "" ]]') would return without knowing the operating system it's run on. extglobs aren't like that and shouldn't be either.Bash already uses the POSIX regex functions (regcomp(3) et al.) to do[[ =~ ]] using POSIX ERE.
[Prev in Thread] | Current Thread | [Next in Thread] |