>> Pressing Ctrl+W erases the entire input line. This is really annoying >> when most other programs (that use readline) bind Ctrl+W to erase the >> current word. > >That's fixable. > >Export EDITRC=/path/to/your/.editrc and put this in that editrc: > > bind "^W" ed-delete-prev-word
Doesn't work. .editrc is not even looked for according to strace, at least not in version 3.1-20191231-2+b1 (I'm using it with the mariadb mysql client). According to #975911: : Hi, this is also bugging me on Fedora 32. Digging deep into the : library chain and source code, it almost certainly is a libedit issue. : Linux doesn't have issetugid(), and in src/el.c in libedit : (2019-something thru 20210419 versions) it clearly only reads editrc if : issetugid is available. Thanks, Paul