Re: bash incorrectly handles 'echo' + SIGPIPE under some situations on Linux

2016-01-06 Thread Chet Ramey
On 1/5/16 11:47 AM, c...@cs.toronto.edu wrote: > Bash Version: 4.3 > Patch Level: 11 > Release Status: release > > Description: > > If Bash writes to stdout with the built in echo and gets a SIGPIPE, > it can incorrectly buffer and then repeat this would-have-been output > in at least $(...) thi

Re: bash incorrectly handles 'echo' + SIGPIPE under some situations on Linux

2016-01-06 Thread Chris Siebenmann
> > If Bash writes to stdout with the built in echo and gets a SIGPIPE, > > it can incorrectly buffer and then repeat this would-have-been output > > in at least $(...) things invoked in a cleanup function and in fact > > in some other contexts as well. To see this in action, create the > > followi

'official function declaration format' doesn't work if alias defined

2016-01-06 Thread Linda Walsh
I had an alias referring to printf that I wanted to replace with a function. instead of using the function declarator 'function' (or my alias 'sub'), I remembered that the official way was to use: P () { ... } But then ran into problems with the alias taking precedence over the function.