bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function name conflict with alias in bash-4.3


From: Greg Wooledge
Subject: Re: Function name conflict with alias in bash-4.3
Date: Tue, 25 Aug 2015 16:32:15 -0400
User-agent: Mutt/1.4.2.3i

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 near unexpected token `('

unalias foobar
foobar() { ...; }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]