This question was about how to delete the last word in bash with ctrl-backspace. As already mentioned there, different Linux distros (or different Unices in general) behave differently: Some produce
^H, some produce
^? if Ctrl+Backspace is pressed.
How can I find out in some automatic way (so it can be used in a script) which convention is followed?