Hi,

I found a bug in bash-4.3 (4.3.39 in fedora 21), that seems to exists for a 
long time (at least from 4.1.2 in Centos 6).

If you have an alias named "foobar", you can create a function with the keyword 
"function" (with or without parenthesis) :
$ function foobar { :; }

But you cannot if you don't :
$ foobar() {:;}
-bash: syntax error near unexpected token `('

It's not really critical once you know it, but it's a little bit odd  !

Thank you,

Corentin Peuvrel

Reply via email to