-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add Option for EOL Normalization/Control #60
Comments
|
Thank you for sharing this idea, and also for providing the well-thought-out rationale. |
That would be perfect! Thanks. |
|
I would also add 'nul' to that option as a EOL terminator! |
I don't understand. Can you explain more, or give a concrete use case? |
I'm not sure I understood your proposal. Or maybe the nul EOL option you're referring to means something else in the context of these application. The only possible use that comes to my mind is that a similar option would be useful for processing binary files, which might contain nul-terminated strings among the raw data — and greps' documentation the
but this would hardly play out well with boxes, which expects text files as input. |
This also adds the ability to testrunner.sh to pipe the output through xxd for binary comparisons.
This also adds the ability to testrunner.sh to pipe the output through xxd for binary comparisons.
This also adds the ability to testrunner.sh to pipe the output through xxd for binary comparisons.
|
Done. This will be in v2.1.0. 👍 Code for the already completed new features is collected on the rc_2.1.0 branch, in case you want to have a look. |
Feature request: add EOL normalization control option:
Rationale: I've integrated boxes in Sublime Text, following the instructions on the website, but the
CREOL creeps into the text ouput as binary character<0x0d>(Git then sees the document as a binary file).This is most likely an issue with the FilterPipes Sublime Text package not taking care of EOLs, but it nevertheless brings up the issue of piping/redirecting boxes output in different contexts.
IMO, being able to enforce a specific EOL (overriding the OS native EOL) would be useful on Windows, especially when working with Bash for Windows or bridging the ouput of various tools across WSL (Windows Subsystem for Linux), where different tools might enforce/expect different EOLs.
Although one could just pipe the output through dos2unix/unix2dos, an integrated option would be preferable. It would also allow Linux users to emit Windows style EOLs in automated toolchains (e.g. appending boxes output to a file marked as
text eol=crlfin.gitattributes).A small option that could ultimately spare lots of headaches, without affecting backward compatibility in any way.
The text was updated successfully, but these errors were encountered: