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

Change echo to printf for portability. #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cuppincake
Copy link
Contributor

This MIGHT address bugs #5 and #8 about that "-e" flag getting printed. echo has portability issues so it's better to use printf (for instance see http://bit.ly/18IxWBY). The only difference is printf won't print a terminal newline, which shouldn't make any difference the way it's being used here.

Unfortunately all my machines either support -e, or echo implicitly supports backslash escapes, so I'm not able to replicate the original issue. However, I'm using the printf version and it hasn't changed the output at all, so there's that.

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.

1 participant