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

Added function echo_n which does not print a newline after the arg. #408

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

Conversation

gryffyn
Copy link

@gryffyn gryffyn commented Nov 29, 2020

I realize that creating an entire new print function is probably the best way to go, but in the spirit of bash, I propose creating a new function echo_n that doesn't print any newlines. The name obviously comes from the fact that echo -n is the way to not output a trailing newline.

Solves #374.

@odino
Copy link
Collaborator

odino commented Feb 8, 2021

hey @gryffyn, sorry for missing this one out! 😮

I think a completely separate function is a bit annoying, I could be open to maybe having a default named argument such as echo("%string", "s", newline=false). What do you think?

@gryffyn
Copy link
Author

gryffyn commented Feb 9, 2021

Oh yeah for sure, I wasn't sure how you wanted to do it, this was 100% intended as more of a stopgap measure for my own use. Having a param like that sounds great.

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.

None yet

2 participants