Re: Segfault when closing piped stdin on 4.4.11

2017-05-15 Thread Eduardo Bustamante
On Mon, May 15, 2017 at 8:09 PM, Elliott Cable wrote: > I'm no shell-script master, but this is segfaulting my Bash, and I was > able to reproduce it on a couple different systems (including the #bash > shbot :P): > > echo '_() { exec <&- ;}; _ "$0" "$@"' >bleh.sh > cat bleh.sh | bash It'

Segfault when closing piped stdin on 4.4.11

2017-05-15 Thread Elliott Cable
I'm no shell-script master, but this is segfaulting my Bash, and I was able to reproduce it on a couple different systems (including the #bash shbot :P): echo '_() { exec <&- ;}; _ "$0" "$@"' >bleh.sh cat bleh.sh | bash Same doesn't cause any problems in recent `dash` or `zsh`. Someone r