Backspace-and-retype a list of words
Perl, 43 bytes
42 bytes of code + -n flags.
chop$@,say$@while!s/^$@//;s/./say$@.=$&amp;/ge

To run it:
perl -nE 'chop$@,say$@while!s/^$@//;s/./say$@.=$&amp;/ge' &lt;&lt;&lt; &quot;abc
abd
aefg
h&quot;