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

Config files ignore last line without \n #15

Open
ralphlange opened this issue Aug 9, 2017 · 1 comment
Open

Config files ignore last line without \n #15

ralphlange opened this issue Aug 9, 2017 · 1 comment
Labels

Comments

@ralphlange
Copy link
Contributor

If the pvlist file (maybe other config files) does not end with a newline (\n) character, the last line is not parsed and its content is ignored.

@ralphlange ralphlange added the bug label Aug 9, 2017
@anjohnson
Copy link
Member

Both ANSI C and Posix actually require a file to end with a newline for it to be a text file, see this, this and this and of course the definitions of file and line in the Posix spec itself. Thus this requirement doesn't have to be treated a bug at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants