Re: Broken PIPESTATUS with --disable-job-control

2016-09-18 Thread Felix Janda
Chet Ramey wrote: > On 9/17/16 1:27 PM, Felix Janda wrote: > > Hello, > > > > below this mail you can find a minimal script misbehaving when > > job-control is configured out (tested on linx with different archs, > > libc's, and versions (including current git)). > > Yes. PIPESTATUS doesn't

Re: Bash bind bug: infinite loop with memory leak in Readline

2016-09-18 Thread Chet Ramey
On 8/10/16 11:42 AM, Christian Klomp wrote: > Hi, > > I found a problem with the binding of key sequences to macros that > results in bash allocating all the memory until the process is killed. > It happens when a key is mapped to itself, e.g., `bind '"3":"3"'`. Now > when '3' is typed the while

Re: Broken PIPESTATUS with --disable-job-control

2016-09-18 Thread Chet Ramey
On 9/17/16 1:27 PM, Felix Janda wrote: > Hello, > > below this mail you can find a minimal script misbehaving when > job-control is configured out (tested on linx with different archs, > libc's, and versions (including current git)). Yes. PIPESTATUS doesn't really have any valid values when the

Re: run_readline_command to avoid the bother of binding something

2016-09-18 Thread 積丹尼 Dan Jacobson
OK then please add dump-functions Print all of the functions and their key bindings to the read- line output stream. If a numeric argument is supplied, the out- put is formatted in such a way that it can be made part of an

Re: built-in commands give no syntax error on trailing garbage

2016-09-18 Thread Chet Ramey
On 9/14/16 6:01 AM, idal...@idallen-fibe.dyndns.org wrote: > Bash Version: 4.3 > Patch Level: 46 > Release Status: release > > Description: > Many built-in commands ignore trailing garbage instead of giving > a syntax error, and this leads newbies into making dumb mistakes >

Re: undocumented 'prefer-visible-bell' found in /bin/bash

2016-09-18 Thread Chet Ramey
On 9/18/16 12:07 AM, 積丹尼 Dan Jacobson wrote: > $ strings /bin/bash | grep -c prefer-visible-bell > 1 Yep, it's still there for backwards compatibility. It was replaced by `bell-style' a long time ago. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa,

Re: run_readline_command to avoid the bother of binding something

2016-09-18 Thread Chet Ramey
On 9/17/16 11:56 PM, Dan Jacobson wrote: > Furthermore, one could finally do > $ run_readline_command dump-variables | grep bell > prefer-visible-bell is set to `on' > bell-style is set to `audible' > > which is rather impossible, even if one does bind unbound commands. I suppose it's a waste of

Re: run_readline_command to avoid the bother of binding something

2016-09-18 Thread Chet Ramey
On 9/17/16 11:34 PM, Dan Jacobson wrote: > "There is no way to run any of the commands that are not bound to a > keyboard sequence without binding them to a keyboard sequence." > > http://unix.stackexchange.com/questions/52578/execute-a-readline-function-without-keybinding > > Yes that is

Re: Single quote character not handled well in associative array index

2016-09-18 Thread Chet Ramey
On 8/29/16 11:28 PM, Wesley Hirsch wrote: > Actually, that raises an interesting question about the differences between > $(( and ((. The man page says that $(( treats its contents as double > quoted, however, (( is a built-in an not an expansion. How does (( treat > its contents? The `(('

Re: repeated extended pattern substitution incredibly slow w/large variables

2016-09-18 Thread Piotr Grzybowski
Hi, maybe I do not fully follow your example, but wouldn't you instead of: time D="${C//\[+([0-9])\]=}" # rm '[]=' want: time D="${C//\[[0-9]*\]=}" # rm '[]=' your example copies a lot to D and thats what takes time, I guess. cheers, pg On 18

repeated extended pattern substitution incredibly slow w/large variables

2016-09-18 Thread xa...@t-online.de
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale'