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-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../. -I.././include -I.././lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall uname output: Linux dnwks49 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu
Bash Version: 4.3 Patch Level: 46 Release Status: release Description: When using any functionality that triggers shquote the comma character is escaped with a backslash which bash doesn't strip when the quoted text is reused, while tilde isn't despite it causing home directory expansion. Repeat-By: Run echo $(printf "%q" "~" "a,b") Expected output: ~ a,b Given output /home/scragar a\,b Fix: patching /lib/sh/shquote.c to have the bstab to have zero for comma and a 1 for the tilde fixes this issue locally