Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I call a function in bash if there is an alias by the same name?

Take a look at this example:

[boda]$ alias aaa='echo aaa'
[boda]$ function aaa () { echo bbb }

[boda]$ function aaa () { echo bbb; }
[boda]$ aaa
aaa

As you can see I've both alias aaa and function aaa. However when I execute aaa the alias runs.

How do I run the function instead?

like image 915
bodacydo Avatar asked Feb 12 '14 20:02

bodacydo


1 Answers

when I execute aaa the alias runs.

You can run it as:

\aaa

This will call function.

like image 104
anubhava Avatar answered Sep 17 '22 19:09

anubhava