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 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

@wilmoore wilmoore commented Aug 22, 2014

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

@wilmoore wilmoore commented Aug 22, 2014

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

@aurium
Copy link
Author

@aurium 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

@nfischer nfischer commented Jul 25, 2016

Any thoughts on how to solve this?

@nfischer
Copy link
Member

@nfischer nfischer commented May 11, 2018

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

@nfischer
Copy link
Member

@nfischer nfischer commented Jul 12, 2018

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