Path: csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail From: Corentin Peuvrel Newsgroups: gnu.bash.bug Subject: Function name conflict with alias in bash-4.3 Date: Tue, 25 Aug 2015 18:36:34 +0200 Lines: 17 Approved: bug-bash@gnu.org Message-ID: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1440534341 13633 208.118.235.17 (25 Aug 2015 20:25:41 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org X-Virus-Scanned: amavisd-new at exosec.local X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 91.90.99.101 X-Mailman-Approved-At: Tue, 25 Aug 2015 16:25:39 -0400 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11440 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