bug in `more -c` when using . to repeat <enter>
Benno Schulenberg <[email protected]>
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <[email protected]> |
To reproduce, run `./more -c README`. Type <enter> a few times, and see that for each <enter> the screen scrolls one line to show another line of the README. (Except when there is a blank line: then it scrolls two lines and shows two blank lines -- that is probably a separate bug.) Now type . instead, which should repeat the last command, in this case <enter>. See how the screen is cleared and just one line of the README is shown. Keep typing . and see that each time just one line is displayed. Typing . here behaves as if the user had typed 1 <enter>, not just <enter>. Bug was found while using `./page README` after `ln -s more page`. But `./page` does not do the doubling of blank lines. Versions: 2.37.2 and 2.41-rc2. Benno
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmfW8icFAwAAAAAACgkQUUu+Lrjhlh+6 GhAAzx3+AOTK47WKUnN3n0OkOTOyW9xa7a+Ljn/WC5PzHgXZ4MwHkR7t/imKF0LF5lGWMd8g7AFV HLxyv6B9939Zi2VNaPSMW+C7WAgfBwzwpj2hS81jh5mnU4OVctnVZuGEsUthg9cIyvqkk7PMhhXk GbWTE8NsTg6UMGKqAAN828CsmPkODXpHoofoQNUv/ltyJIOVQtnIG3z6GpZnIlehP+0+tFf8NYP0 zE4X8BaDln3eE3k3vkAOqdK1MvLo/KVaYbM2tLUg/ob2NN2+5S4w93EEIsEdSrCUmczwKf57K9JK JU/OUv/PDFLL57u0ZK0qDyGQnYYRKZLr05X6kpIRTwuBVHE3aBv6jRoSkBpbbxldwvTGd1KL28wP CfQBAnp8g8mqznItb5KaGfKFjM1Uupv4dwR4IMRKhLmYp7Yx/oEeY7xGo5wqpbQrJufsafB4Rrzl 0AjLtgohWZng4L1yH6rChTkDxCNp3sn49j7pyUTGAIntrK/05dm4FAzTI4PbvVpMnavTfQqmLqP+ yxR5l8IQLmJUyLPiodPEQr7SFN62aXm+NZChrKPxvVspMperCnrwxPpLHusCC/5ey50eUBXGhbYy kl9ZWNDTxgjOh4rsgvHl8WDD6EMjowzYsqsRJPz/M8e8e13bpYaqlB3JAsdww10vGQW5G4XRNJcM Hf4= =oLK0 -----END PGP SIGNATURE-----