Se for um arquivo configure.ac
, então não é um script de shell puro, mas é um script Autoconf usando M4, onde []
são caracteres de aspas. :
To fully understand where proper quotation is important, you first need to know what the special characters are in Autoconf: ‘
#
’ introduces a comment inside which no macro expansion is performed, ‘,
’ separates arguments, ‘[
’ and ‘]
’ are the quotes themselves, ‘(
’ and ‘)
’ (which M4 tries to match by pairs), and finally ‘$
’ inside a macro definition.Each time there can be a macro expansion, there is a quotation expansion, i.e., one level of quotes is stripped:
int tab[10]; ⇒int tab10; [int tab[10];] ⇒int tab[10];
Esse [[3456]]
deve ser expandido pelo autoconf para [3456]
, que seria a saída correta para uso como um script de shell.