note the consistent user interface
note the consistent user interface
Posted Jan 3, 2012 8:09 UTC (Tue) by rsidd (subscriber, #2582)In reply to: note the consistent user interface by tnoo
Parent article: GNU ed 1.6 released
Source code for ed:
while :;do read x;echo \?;done
(from here)
Posted Jan 4, 2012 11:15 UTC (Wed)
by tnoo (subscriber, #20427)
[Link]
trap "" SIGINT;while :;do read x;echo \?;done
note the consistent user interface
this still breaks on ^C. The source code must be more complex, maybe like this:
