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

feature: echo -n #559

Closed
nfischer opened this issue Nov 17, 2016 · 1 comment
Closed

feature: echo -n #559

nfischer opened this issue Nov 17, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@nfischer
Copy link
Member

Add support for the -n option for the echo command. This removes the default trailing newline.

Ex.

$ echo foo bar # notice the extra space after "foo bar"
foo bar

$ echo -n foo bar # notice no extra space after "foo bar"
foo bar
$

This can be implemented using process.stdout.write() fairly easily, just remember to concatenate all arguments into a single string to pass to process.stdout.write()

@nfischer
Copy link
Member Author

Fixed in #590

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