LWN.net Logo

Evolution of shells in Linux (developerWorks)

Evolution of shells in Linux (developerWorks)

Posted Dec 8, 2011 8:33 UTC (Thu) by geuder (subscriber, #62854)
In reply to: Evolution of shells in Linux (developerWorks) by ncm
Parent article: Evolution of shells in Linux (developerWorks)

> line-editing on a command pulled from the history, in bash, destructively edit the history

Annoyance #1 with bash, I agree. I wonder whether there is an option to control that. Read the man page once, but I might have overlooked it.

Annoyance #2: If you press Ctrl-C, get your prompt not in the beginning of the line, scroll back in history and edit, the outcome is not WYSIWYG but a mess.
This is 2011 and not 1970 so it should be possible for the program to make sure it knows what the line on the screen looks like. I guess technically this is a GNU readline issue, so the fix needs to go there. Isn't history editing also provided by GNU readline? So the same might hold for Annoyance #1


(Log in to post comments)

Evolution of shells in Linux (developerWorks)

Posted Dec 8, 2011 11:57 UTC (Thu) by bjartur (guest, #67801) [Link]

I don't think there are many willing to step up and fix readline, after patching every mainstream VT100 emulator out there. The paradigm of redirecting debugging information, output and input echo to a single character stream is plain outdated.

Does anyone own any of the TeleTypes that might brake if anything is changed? I, for one, have never seen one, and call for a rewrite. Keep stdin, stdout and stderr - but throw out the overmultiplexing and terminal emulation.

Evolution of shells in Linux (developerWorks)

Posted Dec 9, 2011 13:28 UTC (Fri) by mpr22 (subscriber, #60784) [Link]

I'm not clear what your final paragraph is calling for a rewrite of. Could you clarify?

Evolution of shells in Linux (developerWorks)

Posted Dec 8, 2011 13:01 UTC (Thu) by grawity (guest, #80596) [Link]

> Annoyance #1 with bash, I agree. I wonder whether there is an option to control that. Read the man page once, but I might have overlooked it.

In ~/.inputrc, "set revert-all-at-newline on"

Evolution of shells in Linux (developerWorks)

Posted Dec 9, 2011 0:46 UTC (Fri) by ncm (subscriber, #165) [Link]


WOW

This made my day. Thank you, grawity. After decades of suffering, I'm finally happy with bash.

Evolution of shells in Linux (developerWorks)

Posted Dec 9, 2011 12:28 UTC (Fri) by nix (subscriber, #2304) [Link]

You might want to read the readline info book sometime to avoid some more decades of suffering :)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds