On Sat, Aug 29, 2020, 15:27 Koichi Murase <myoga.mur...@gmail.com> wrote:
> I assumed that you have written like > > separator2='\057' > pattern1="${number1}(${separator1})" > > because otherwise, it doesn't work with ksh93 either. > You are correct. To explain it in more detail, first, these parameter expansions work > for me with separator1='/'. The pattern that you constructed from > separator2='\057' is just not supported by Bash. That's surprising, as octal and hexadecimal escapes are fairly common. Next, you specify > exactly the same script `shellbug' to both Bash and ksh93, so I could > assume that you are missing the Bash-specific `shopt -s extglob' in > the script because otherwise, ksh93 would have complained it. That is > all what I can guess from your original post. > Yes, I'm still looking into that (along with updating a couple of FreeBSD machines, eating lunch, and monitoring a couple of downloads). I'll obviously have to wrap the "shopt" bit in a wrapper; is there some minimum bash version that supports it? > >