Re: [PATCH] Switch vi-insert TAB binding only for the default binding

2019-02-17 Thread Chet Ramey
On 2/15/19 6:58 PM, Koichi Murase wrote: >> There is a third option: turning posix mode on saves the old binding >> for TAB; turning it off restores it. That, combined with a check of >> whether or not the binding was still TAB:self-insert, should handle >> both cases. > > Thank you for your reply

Re: Failed exec resets job control state

2019-02-17 Thread Chet Ramey
On 2/15/19 7:32 PM, Grisha Levit wrote: > An `exec` that can't execute the supplied command seems to cause the > status of job control to become reset to the default state: > >$ bash -O execfail -mc 'echo $-; exec xxx; echo $-' >hmBc >bash: line 0: exec: xxx: not found >hBc > >

Re: info missing in output of declare -a in 4.4.x

2019-02-17 Thread L A Walsh
On 2/16/2019 4:57 AM, Robert Elz wrote: > Date:Fri, 15 Feb 2019 22:21:25 -0800 > From:L A Walsh > Message-ID: <5c67abe5.1030...@tlinx.org> > > | Thought about thatrestarted a fresh shell. Same same. > | At least I know it's supposed to... > > It isn't j

Re: info missing in output of declare -a in 4.4.x

2019-02-17 Thread Dennis Williamson
On Sun, Feb 17, 2019, 3:10 PM L A Walsh > > On 2/16/2019 4:57 AM, Robert Elz wrote: > > Date:Fri, 15 Feb 2019 22:21:25 -0800 > > From:L A Walsh > > Message-ID: <5c67abe5.1030...@tlinx.org> > > > > | Thought about thatrestarted a fresh shell. Same same. > >

Re: info missing in output of declare -a in 4.4.x

2019-02-17 Thread L A Walsh
On 2/17/2019 2:19 PM, Dennis Williamson wrote: > > So it really is a bug of some sort, not that I use BASH ALIASES > for anything. Was going to, but ... and you're right, lots of > things aren't showing there. > > > > > Have you tried starting Bash without any startup files,

Re: [PATCH] Fix a bug that `bind -x '"metachar":command'' fails when rl-variable `convert-meta' is `on'

2019-02-17 Thread Chet Ramey
On 2/11/19 1:57 AM, Koichi Murase wrote: > Bash Version: 5.0 > Patch Level: 0 > Release Status: release > > Description: > > When readline variable `convert-meta' is set to `on', `bind -x' > including meta characters in its keyseq fails to bind. > > For an actual example, see the next `Repe

Re: Failure to log in as root to serial console in bash 5.0; works in bash 4.4

2019-02-17 Thread Chet Ramey
On 2/16/19 10:55 AM, jpb...@jfroot.com wrote: > Bash Version: 5.0 > Patch Level: 2 > Release Status: release > > Description: > This all works with bash 4.4; just tested it with it, it works fine. > In bash 5.0, an attempt to login as root on a serial console on my > machine res

Re: info missing in output of declare -a in 4.4.x

2019-02-17 Thread Dennis Williamson
On Sun, Feb 17, 2019, 6:01 PM L A Walsh > > On 2/17/2019 2:19 PM, Dennis Williamson wrote: > > > > So it really is a bug of some sort, not that I use BASH ALIASES > > for anything. Was going to, but ... and you're right, lots of > > things aren't showing there. > > > > > > > > > > Ha

Re: ${b+s ''}

2019-02-17 Thread Chet Ramey
On 2/16/19 11:38 AM, sunnycemet...@gmail.com wrote: > I would like to include a null string as part of a parameter expansion word: > >> mapfile -t${bNullDelimited+d ''} > > When bNullDelimited is set, I expect this to expand to: > >> mapfile -td '' > > However, it expands to: > >> mapfile -td

Re: nested bash 5 interactive sessions without job control

2019-02-17 Thread Chet Ramey
On 2/15/19 9:43 PM, Grisha Levit wrote: > When in an interactive shell with job control disabled, starting > another interactive shell, disabling job control, and then exiting, > causes the parent shell to exit after any key press. > > bash-5.0$ set +m; $BASH --norc -i -c 'set +m' > bash-5.0$ [any

Re: bug-bash@gnu.org

2019-02-17 Thread Chet Ramey
On 2/14/19 4:20 PM, rugk wrote: > Hi, > regarding the paste security issues (pastejacking) [1] there is one last > thing that shall be done to make it possible for terminal emulators to > enable a secure shell by default: Enable bracket pasting mode in bash, by > default. That's a good reason to t

Re: in bash 4.4.12,want to verify a behavior...

2019-02-17 Thread Chet Ramey
On 2/15/19 11:45 PM, L A Walsh wrote: > > I printed the various declares using: > > declare -p |& more > > One of the early entries is: > > declare -A BASH_ALIASES=() > > Yet if I type 'alias |& wc, I see 56 lines starting with alias. > > I _thought_ BASH_ALIASES was suppose to hold the alias

Re: in bash 4.4.12,want to verify a behavior...

2019-02-17 Thread Chet Ramey
On 2/16/19 7:57 AM, Robert Elz wrote: > Date:Fri, 15 Feb 2019 22:21:25 -0800 > From:L A Walsh > Message-ID: <5c67abe5.1030...@tlinx.org> > > | Thought about thatrestarted a fresh shell. Same same. > | At least I know it's supposed to... > > It isn't just