Package: bash Version: 5.2~rc2-2 Severity: normal Dear Maintainer,
The new version of bash breaks aliases if the alias has an $() subcommand embedded inside of it: $ alias foo='echo $(date)' $ foo $ Mon Aug 29 11:52:38 EDT 2022 $ foo $ ls Mon Aug 29 11:52:41 EDT 2022ls The command is actually entering the history as "foo\nls" too: 505 alias foo='echo $(date)' 506 foo 507 foo ls 508 history | tail -n 6 The alias appears to be loaded correctly: $ alias foo alias foo='echo $(date)' Under bash 5.1 this worked fine: $ alias foo='echo $(date)' $ foo Mon Aug 29 11:55:26 EDT 2022 -- System Information: Debian Release: bookworm/sid APT prefers unstable APT policy: (500, 'unstable') merged-usr: no Architecture: amd64 (x86_64) Kernel: Linux 5.18.0-3-amd64 (SMP w/2 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages bash depends on: ii base-files 12.2 ii debianutils 5.7-0.3 ii libc6 2.34-7 ii libtinfo6 6.3+20220423-2 Versions of packages bash recommends: pn bash-completion <none> Versions of packages bash suggests: pn bash-doc <none> -- Configuration Files: /etc/bash.bashrc changed [not included] -- no debconf information