[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Function name conflict with alias in bash-4.3
From: |
Corentin Peuvrel |
Subject: |
Function name conflict with alias in bash-4.3 |
Date: |
Tue, 25 Aug 2015 18:36:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
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
- Function name conflict with alias in bash-4.3,
Corentin Peuvrel <=