2 ms·
Interesting. Also if you disable werase i.e. "stty werase ''" and use the bind bash builtin to set "bind Control-w:' backward-kill-word'" you will get slightly
by emmelaich 4y ago
Interesting.
Also if you disable werase i.e. "stty werase ''" and use the bind bash builtin to set "bind Control-w:' backward-kill-word'" you will get slightly different behaviour. A hyphen will be considered a word ending, unlike the tty.
So does bash read ^w and mimics the tty behaviour regarding the definition of a word?
I don't have linux handy right now and tracing on macos is painful otherwise I'd dive deeper.