-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Pipes not working in @actions/exec node module #359
Comments
@Kerizer I have the same problem, the command I want to run is A workaround I found is to use |
As I just found out, this also affects chaining commands with |
@hrueger Thanks a lot for the workaround. For future reference here is the windows equivalent: WINDOWS: exec.exec(`cmd /c "my command"`) |
Closing as a dupe of #346 |
Describe the bug
It looks like @actions/exec.exec escapes commands and pipes are not working because of this
To Reproduce
Steps to reproduce the behavior:
@actions/exec
to project -npm i -s @actions/exec
echo "Hello world" | grep "o"
Hello world" | grep "o"
, instead ofHell**o** w**o**rld
(asterisks here are only for visual purpose, i do not expect them to be in log)Expected behavior
Have an option to disable escaping
Screenshots

Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: