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


Groups > gnu.bash.bug > #11441

Re: Function name conflict with alias in bash-4.3

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Function name conflict with alias in bash-4.3
Date 2015-08-25 16:32 -0400
Message-ID <mailman.95.1440534741.28410.bug-bash@gnu.org> (permalink)
References <55DC9992.8070209@pom-monitoring.com>

Show all headers | View raw


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() { ...; }

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


Thread

Re: Function name conflict with alias in bash-4.3 Greg Wooledge <wooledg@eeg.ccf.org> - 2015-08-25 16:32 -0400

csiph-web