Sitelet https://web.archive.org/web/20201123153952/https://github.com/shelljs/shelljs/issues/559
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

@nfischer nfischer commented Nov 17, 2016

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 nfischer added the feature label Nov 17, 2016
@nfischer nfischer added this to the v0.8.0 milestone Nov 17, 2016
@nfischer
Copy link
Member Author

@nfischer nfischer commented Dec 27, 2016

Fixed in #590

@nfischer nfischer closed this Dec 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.