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
> > 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
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.