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
Question: passing code via pipe? #520
Comments
Did you look into our support for pipes? The built-in You can also use the |
This worked perfectly! Thanks! |
It seems like |
Exec should. Echo does not support it yet (but I can add support) |
So adding support will suppress the output but still pass it to exec? |
For now, the recommended workaround is But I'll probably write something up that's more intuitive, since we get this issue a lot. If that works for you, feel free to close this issue (we have some other issues related to this, see #146 and #501). |
@nfischer: Suggestion (and I'm happy to open a PR for this): we could make a shell.pipe = function (str) {
return new shell.ShellString(str);
} |
I'm using the following code to pass javascript source code (as a string) as stdout to anther command.
The issue with this is there are a bunch of issues caused by the syntax of javascript being evaluated by bash. Is there a better way of doing this?
The text was updated successfully, but these errors were encountered: