Re: certain strings both legal and illegal as associative array keys

2015-03-02 Thread vampyrebat
Thank you, Greg, for the quick, helpful response. > Your best bet is to store the > index in a variable instead of trying to deal with multiple levels > of quoting in the same argument. In the script where this problem arose, the index is indeed stored in a variable, and I tried various ways of

Re: [Bug-readline] Problem with CTRL-z and readline()

2015-03-02 Thread Dave Wysochanski
On Sun, 2015-03-01 at 20:14 -0500, Chet Ramey wrote: > On 2/27/15 12:10 PM, Dave Anderson wrote: > > > > This issue was first reported with respect to the crash utility, > > which is an interactive program that uses the readline library. > > > > The problem occurs only if the crash utility is r

Re: [Bug-readline] Problem with CTRL-z and readline()

2015-03-02 Thread Hans Lub
2015-03-02 2:14 GMT+01:00 Chet Ramey : > Any ideas are welcome. > I have never thought very deeply about this, but rlwrap (which uses the alternate interface and has its own signal handlers) remains suspended in the SIGTSTP signal handler (by resetting the SIGTSTP disposition and then sending a S

Re: [Bug-readline] Problem with CTRL-z and readline()

2015-03-02 Thread Hans Lub
2015-03-02 10:47 GMT+01:00 Hans Lub : > and defers the restoring until after wakeup (cf signals.c > ). > Now I realize that rlwrap doesn't restore terminal attributes after a SIGTSTP, and will leave them modified when killed by a

Re: certain strings both legal and illegal as associative array keys

2015-03-02 Thread Greg Wooledge
On Sun, Mar 01, 2015 at 12:05:53AM -0600, vampyre...@gmail.com wrote: > A string is either legal or not legal as a key for an associative array. > However, bash accepts certain keys in some contexts but not in other > contexts, It's all about the quoting. > #!/bin/bash > > declare -A foo > > f

Re: Memory leak in wait

2015-03-02 Thread Jean Delvare
Hi Dave, On Mon, 2 Mar 2015 04:38:43 -0500, Dave Rutherford wrote: > On Mon, Mar 2, 2015 at 2:33 AM, Jean Delvare wrote: > > Which brings another question: is there any plan to implement sleep as > > a bash builtin? > > It's already available as a loadable builtin (examples/loadables/sleep.c).

Re: Memory leak in wait

2015-03-02 Thread Dave Rutherford
On Mon, Mar 2, 2015 at 2:33 AM, Jean Delvare wrote: > Which brings another question: is there any plan to implement sleep as > a bash builtin? It's already available as a loadable builtin (examples/loadables/sleep.c).