We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ g++ 000.cpp && diff output.txt <(./a.out < input.txt) 1c1 < 9 \ No newline at end of file --- > Hello $ sos -p 000.cpp -c "g++ 000.cpp && diff output.txt <(./a.out < input.txt)" Hit Ctrl+C to quit. Modified: 000.cpp [1/1] g++ 000.cpp && diff output.txt <(./a.out < input.txt) /bin/sh: -c: line 0: syntax error near unexpected token `(' /bin/sh: -c: line 0: `g++ 000.cpp && diff output.txt <(./a.out < input.txt)' Failure ✗ (1)
The text was updated successfully, but these errors were encountered:
Thanks for the bug! I think it's possible your parenthesis are being interpreted as a capture group? I'm not sure. I'll get to this as soon as I can.
Sorry, something went wrong.
@wizzup I think this syntax is a bashism, but sos runs shell commands with sh. Do you get the same error with this at the shell?
sos
sh
$ sh -c 'g++ 000.cpp && diff output.txt <(./a.out < input.txt)'
@mitchellwrosen Good catch! Got the same error when running with sh.
I don't think sos need to do anything with bash. I am going to close this as won't fix.
bash
won't fix
My workaround is just create a run.sh and call it instead.
run.sh
No branches or pull requests
The text was updated successfully, but these errors were encountered: