Re: repeated extended pattern substitution incredibly slow w/large variables

2016-09-19 Thread xa...@t-online.de
> maybe I do not fully follow your example, but wouldn't you instead of: > > time D="${C//\[+([0-9])\]=}" # rm '[]=' > > want: > > time D="${C//\[[0-9]*\]=}" # rm '[]=' this would also find [!asd]. And there are other possibilities. but that was not

repeated extended pattern substitution incredibly slow w/large variables

2016-09-18 Thread xa...@t-online.de
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='b