On Wed, 2 Nov 2022, Christophe Lyon via Gcc-patches wrote: > +# Sanity check: make sure we have as many dirnames as options > +if [ -n "${dirnames}" ]; then > + options_arr=($options)
This is an sh script; arrays are a bash feature. Building GCC isn't supposed to need bash (or to rely on $(SHELL) being bash, even when bash is available - many GNU/Linux systems use dash for /bin/sh), only a POSIX shell. -- Joseph S. Myers jos...@codesourcery.com