Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing last line when page doesn't end with a new line #41

Merged
merged 1 commit into from
Aug 6, 2023

Conversation

rnwgnr
Copy link
Contributor

@rnwgnr rnwgnr commented Aug 6, 2023

Due to the behaviour of read the current implementation will drop the content of the last line of a page if it's not followed by an empty newline.

solution found (it's an interesting read besides that) at: https://stackoverflow.com/questions/12916352/shell-script-read-missing-last-line

Due to the behaviour of `read` the current implementation will
drop the content of the last line of a page if it's not followed
by an empty newline.

solution found (it's an interesting read besides that) at:
https://stackoverflow.com/questions/12916352/shell-script-read-missing-last-line
@blmayer
Copy link
Owner

blmayer commented Aug 6, 2023

Interesting. Thanks for the fix.

@blmayer blmayer merged commit 297bdb0 into blmayer:main Aug 6, 2023
@rnwgnr rnwgnr deleted the lastline branch August 7, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants