Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11440

Function name conflict with alias in bash-4.3

From Corentin Peuvrel <cpeuvrel@pom-monitoring.com>
Newsgroups gnu.bash.bug
Subject Function name conflict with alias in bash-4.3
Date 2015-08-25 18:36 +0200
Message-ID <mailman.93.1440534341.28410.bug-bash@gnu.org> (permalink)

Show all headers | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Function name conflict with alias in bash-4.3 Corentin Peuvrel <cpeuvrel@pom-monitoring.com> - 2015-08-25 18:36 +0200

csiph-web