Re: Bug#741402: [bash] Shell functions definitions may require parentheses despite function keyword

2014-03-13 Thread Dan Douglas
On Wednesday, March 12, 2014 01:57:19 AM Filipus Klutiero wrote: > The following definition should therefore be valid: > > $ function bar (echo x) > > ...but it's not: > > bash: syntax error near unexpected token `echo' > > However, an identical function can be defined with the following definiti

Bug#741402: [bash] Shell functions definitions may require parentheses despite function keyword

2014-03-12 Thread Filipus Klutiero
Package: bash Version: 4.3-2 Severity: minor X-Debbugs-Cc: bug-bash@gnu.org According to the manual, either the function keyword or parentheses should be sufficient to define a function: Shell Function Definitions A shell function is an object that is called like a simple command and execu