xmalloc error involving functrace, int trap and ps4

2023-06-24 Thread Wiley Young
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASS

xtrace ansi quoting vs shell metas

2023-06-24 Thread Grisha Levit
When printing the command for xtrace, if a word or assignment rhs contains a shell meta character, ansi quoting is not applied even if it otherwise should be. $ (set -x; : $'_\1' $'*\1') |& cat -v + : $'_\001' '*^A' It seems that the order of the sh_contains_shell_metas and ansic_shouldquote test