2 ms·
I made an awful line editor in the 1990's, entirely in Bash. It used Bash arrays to buffer the text. There is a surviving piece of it: a line editing routine.
by kazinator 6y ago
I made an awful line editor in the 1990's, entirely in Bash. It used Bash arrays to buffer the text.
There is a surviving piece of it: a line editing routine. For many years, that was included in GNU Bash as one of the examples:
https://git.savannah.gnu.org/cgit/bash.git/tree/examples/scripts/line-input.bash?id=3185942a5234e26ab13fa02f9c51d340cec514f8 https://git.savannah.gnu.org/cgit/bash.git/tree/examples/scr...
They had the good sense to remove that.