When using the up arrow to edit previous commands, the backspace key does not erase the older text.
Weirdly, it does work on newly added text, and other commands like crtl-w do work to erase whole words from the old commands.
I get the same behavior in both bash and zsh.
Any ideas?