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

Sort should silently add a newline to the last line of input if it is missing #5

Open
charles-randall opened this issue Mar 15, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@charles-randall
Copy link
Contributor

charles-randall commented Mar 15, 2021

@mayank-02 Are you getting notified of these?

See the INPUT FILES section of this document,

https://www.unix.com/man-page/posix/1p/sort/

INPUT FILES

The input files shall be text files, except that the sort utility shall add a newline to the end of a file ending with an incomplete last line.

GNU sort,
$ echo -ne "a\nb\nc" | sort
a
b
c
$

msort,
$ echo -ne "a\nb\nc" | msort
a
b
c$

@mayank-02
Copy link
Owner

Thanks for pointing it out. I was notified, but didn't get the time to check right away. I'll need some time to incorporate the couple of issues you brought forward. Meanwhile feel free to go ahead and create pull requests for the same.

@mayank-02 mayank-02 added the bug Something isn't working label Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants