On Tue, Apr 18, 2023 at 04:19:47PM +0200, Vincent Lefevre wrote: > BTW, history expansion can be very useful, but IMHO, this should > have been interactive and triggered by control characters or > escape sequences, not by "normal" characters.
History expansion originated in csh, and was duplicated in bash, which aimed to be accomodating and familiar to both ksh/sh and csh users. If history expansion feels foreign or alien, or if it has unexpected interactions with other shell features... well, that's why.