En la versión 4.2.47 (1) de Bash, suelte cuando intento catear texto formateado que proviene de un mensaje AQUÍ, así:
cat <(fmt --width=10 <<FOOBAR
(I want the surrounding parentheses to be part of the HERE-document)
(Even the preceding unbalanced parenthesis should be part of it.
FOOBAR
) # I want this paranthesis to end the process substitution.
Obtuve el siguiente error:
bash: bad substitution: no closing `)' in <(fmt --width=10 <<FOOBAR
(I want the surrounding parentheses to be part of the HERE-document)
(Even the preceding unbalanced parenthesis should be part of it.
FOOBAR
)
Además, no quiero citar el documento AQUÍ, es decir <'FOOBAR', escribir , porque todavía quiero que las variables se sustituyan dentro de él.
(Evencon la "(Even"que funciona. Es lo mismo para \(Even. Parece un error de análisis. Bash todavía está en un contexto en el que está buscando llaves, mientras que también está en el contexto de leer el documento aquí y ambos contextos se contradicen entre sí.
bash4.3, por cierto.
catllamada? ¿Por qué no dejarlo en la llamadafmt?