Re: bug-report: debug trap messes up pipestatus if containing command substitution

2019-05-20 Thread Hengyang Zhao
I missed a segment of my config when copy-pasting: Bash Version: 5.0 Patch Level: 7 Release Status: release On Mon, May 20, 2019 at 9:57 PM Hengyang Zhao wrote: > +speng...@ucr.edu +yunduan@gmail.com > > On Mon, May 20, 2019 at 9:51 PM Hengyang Zhao > wrote: > >> Dear bash developers, >> >

Re: bug-report: debug trap messes up pipestatus if containing command substitution

2019-05-20 Thread Hengyang Zhao
+speng...@ucr.edu +yunduan@gmail.com On Mon, May 20, 2019 at 9:51 PM Hengyang Zhao wrote: > Dear bash developers, > > I found an unexpected behavior when engineering some code in a callback of > DEBUG trap. The code has been distilled to expose this behavior: > > ### BEGIN > my_func() { >

bug-report: debug trap messes up pipestatus if containing command substitution

2019-05-20 Thread Hengyang Zhao
Dear bash developers, I found an unexpected behavior when engineering some code in a callback of DEBUG trap. The code has been distilled to expose this behavior: ### BEGIN my_func() { local x=$(:) } trap my_func DEBUG false | true | false | true | false echo ${PIPESTATUS[@]} # expects 1 0 1 0 1

Re: readline: How to unbind _all_ keys

2019-05-20 Thread Chet Ramey
On 5/19/19 10:43 AM, Henning wrote: > I don't like to have dozens of key bindings I never use. Currently I > am issuing lots of lots of bind -r/-u commands to get rid of the > default bindings. This slows down console startup unnecessarily. > > I would really like to have an inputrc command like $

Re: readline: How to unbind _all_ keys

2019-05-20 Thread Henning
On 20/05/2019 07:41, G. Branden Robinson wrote: Remember that "self-insert" is a binding. I know (I've been using for over 20 years (v2.01) now) If you removed all bindings, no keystrokes would do _anything_. that's exactly what I want in order to then only bind the keys I want to have boun