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

The re-implementation of snowsaw in go cannot handle complex shell commands #98

Open
xulongwu4 opened this issue Oct 5, 2021 · 0 comments

Comments

@xulongwu4
Copy link
Contributor

One of the core tasks of snowsaw is its capability of running shell commands by using a shell field in the snowblock.json file. In the python implementation of snowsaw, user can use complex shell commands such as echo a || echo b in the command field and it will be handled correctly. However, in the go implementation of snowsaw, such command cannot be executed correctly. I believe this is because the code will take the first word -- echo in the example -- as the command name, and interpret everything else -- a || echo b in the example -- as the parameters of the command.

This breaks the backward compatibility of the snowsaw tool.

@xulongwu4 xulongwu4 changed the title The re-implementation of snowsaw in go cannot handle complex shell command The re-implementation of snowsaw in go cannot handle complex shell commands Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant