The following function is legal syntax, but yields an error:
function good_dir [[ -n $1 && -d $1 && -r $1 && -x $1 ]]
bash: syntax error near unexpected token `[['
----
To which Andreas comments that it's a grammar bug:
Andreas Schwab wrote:
Bernd Eggink <mono...@sudrala.de> writes:
"If the function reserved word is supplied, the parentheses are
optional."
While the grammer has the right rules for this the handling inside of
special_case_tokens isn't right up to it, it only recognizes '{'
following 'function WORD'.
Andreas.