with bash-5.0.3, !foo-b reports b bash: b: command not found even when foo-bar is in history.
there is nothing in the history expansion sectio of the man page which would eve suggest that - cannot be part of string. -JimC -- James Cloos <cl...@jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6