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

.to(file) does not mute STDIO output #146

Closed
aurium opened this issue Aug 11, 2014 · 6 comments
Closed

.to(file) does not mute STDIO output #146

aurium opened this issue Aug 11, 2014 · 6 comments
Assignees
Labels

Comments

@aurium
Copy link

aurium commented Aug 11, 2014

node -e "require('shelljs/global'); echo('some words').to('/dev/null')"
Must not print some words on console.

@wilmoore
Copy link

You can achieve this by doing the following:

"some words".to("/dev/null")

Though, you still have a point in that the shell built-in echo; when redirected does the right thing. Probably should keep this open until addressed.

@wilmoore
Copy link

Perhaps echo should work more like a write stream. It is currently just doing console.log.

@aurium
Copy link
Author

aurium commented Jan 19, 2016

Consider this related to issue #154, so any output must be silenced when piped to a file.

@nfischer
Copy link
Member

Any thoughts on how to solve this?

@nfischer
Copy link
Member

Blocked on issue #800. @freitagbr we could probably just merge this into that issue.

@nfischer
Copy link
Member

Merging into #800

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

4 participants