Re: history -a misbehaves with $HISTSIZE

2019-02-12 Thread Chet Ramey
On 2/10/19 4:59 PM, Айрат Васбикарамов wrote: > Machine Type: x86_64-unknown-linux-gnu > Bash Version: 4.4 > Patch Level: 23 > Release Status: release > Description: > $ history -c > $ HISTSIZE=2 > $ HISTFILE=$(mktemp) > $ history -a > $ cat $HISTFILE > $ > File is still empty! > bashhist.c:maybe_

bash 5.0 ships with very old autoconf macros

2019-02-12 Thread Christian Weisgerber
The bash 5.0 release still ships with very old autoconf macros to detect gettext. In aclocal.m4, the copy of gettext.m4 and the supporting lib-link.m4 are from gettext-0.12 dating from 2003. In particular, the included version of AC_LIB_LINKFLAGS_BODY cannot detect shared libraries on OpenBSD. (

Re: AddressSanitizer: heap-use-after-free on (...) in rl_do_undo ../../../bash-devel/lib/readline/undo.c:188

2019-02-12 Thread Chet Ramey
On 2/6/19 12:14 PM, Eduardo A. Bustamante López wrote: > I found another issue in rl_do_undo, but I haven't been successful in > figuring out how it happens. The command string calls execute-last-kbd-macro as part of a macro definition. The internal abort turns off the defining-macro state withou

5.0: CPPFLAGS doesn't propagate to loadables

2019-02-12 Thread Christian Weisgerber
There is a small omission in bash 5.0's build infrastructure: The CPPFLAGS variable doesn't propagate to the actual compiler flags used to build the loadables. In practice, this means that the seq loadable will fail to build on operating systems that have libintl outside the default paths (e.g. Op

What is the purpose of ASSIGNMENT_WORD?

2019-02-12 Thread Peng Yu
Hi, I know that ASSIGNMENT_WORD in parse.y is for assignments like x=10. But in the grammar rules. I don't see any difference between them in terms of actions to take. Where is the code that deals with them differently? Also, why parse x=10 as a single token. Why not parse it as three tokens "x"

Bash 4 crash: "f(){ declare -a x;declare -A x;};f"

2019-02-12 Thread Mark
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/local/share/l