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

[bug] echo(content).to(file) also sends content to stdout #958

Closed
MisterTicot opened this issue Aug 9, 2019 · 1 comment
Closed

[bug] echo(content).to(file) also sends content to stdout #958

MisterTicot opened this issue Aug 9, 2019 · 1 comment

Comments

@MisterTicot
Copy link

Node version (or tell us if you're using electron or some other framework):

v10.15.2

ShellJS version (the most recent version/Github branch you see the bug on):

0.8.3

Operating system:

Ubuntu 19.04

Description of the bug:

echo(content).to(file) also sends content to stdout. If .to(file) is meant to act like >, then it should capture the output rather than copy it to file (like tee would do).

Example ShellJS command to reproduce the error:

shell.echo("foo").to("bar")
@nfischer
Copy link
Member

This is a duplicate of issue #146; my hope was that #800 would address this elegantly, but we've made no progress on that issue. Nonetheless, closing this as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants