Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11440
| Path | csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Corentin Peuvrel <cpeuvrel@pom-monitoring.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Function name conflict with alias in bash-4.3 |
| Date | Tue, 25 Aug 2015 18:36:34 +0200 |
| Lines | 17 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.93.1440534341.28410.bug-bash@gnu.org> (permalink) |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | usenet.stanford.edu 1440534341 13633 208.118.235.17 (25 Aug 2015 20:25:41 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| X-Virus-Scanned | amavisd-new at exosec.local |
| X-Enigmail-Draft-Status | N1110 |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] |
| X-Received-From | 91.90.99.101 |
| X-Mailman-Approved-At | Tue, 25 Aug 2015 16:25:39 -0400 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.14 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:11440 |
Show key headers only | 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
Function name conflict with alias in bash-4.3 Corentin Peuvrel <cpeuvrel@pom-monitoring.com> - 2015-08-25 18:36 +0200
csiph-web