On 2014-03-13 08:26, Linda Walsh wrote:
Filipus Klutiero wrote:
Hi Linda,
On 2014-03-12 23:23, Linda Walsh wrote:
Filipus Klutiero wrote:
$ function bar () (echo x)
---
Hmm...
You are right.
Are you in posix mode by chance?
No (assuming that's not the case by default).
I tried your example in my bash and it works.
bash --version
GNU bash, version 4.3.0(1)-rc1 (x86_64-unknown-linux-gnu)
$ bash --version
GNU bash, version 4.3.0(1)-release (i486-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
chealer@vinci:/tmp/test$ function bar (echo x)
bash: syntax error near unexpected token `echo'
chealer@vinci:/tmp/test$
--
Filipus Klutiero
http://www.philippecloutier.com
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org