Re: Function name conflict with alias in bash-4.3

2015-08-25 Thread Eric Blake
On 08/25/2015 10:36 AM, Corentin Peuvrel wrote: > 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). Not a bug, but a misunderstanding on your part about how aliases work. Alias expansion is done on the left-most wo

Re: Function name conflict with alias in bash-4.3

2015-08-25 Thread Greg Wooledge
On Tue, Aug 25, 2015 at 06:36:34PM +0200, Corentin Peuvrel wrote: > 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 nea