-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
--execute does not work as expected #712
Comments
Hey @Yurlungur. If you're still interested, the bug is probably somewhere in main.py. I'm not sure the bug is still present thought. I'll investigate it. |
Wow. I'd completely forgotten about this. Sure, I'm still interested, if the bug is still present. I'll take a look. |
Here is what I am currently getting:
Personally I find mxing |
Honestly, it's been so long that I don't remember why I wanted to do this. An easy fix might be to just put that one can't mix these flags into the help message and move on. |
@Yurlungur I'm fixing it. |
Personally, I'd like to understand the use case and then document this assuming it is useful. Or if it matches the behavior of the WL command line options that is useful to know too. Also a unit test would be nice. |
When I run
mathics -e "Print[1+1];" -script myfile.mathics
where
myfile.mathics
simply contains the linePrint["Hello"];
I getIn[1]:= Print[1+1]; 6
And
myfile.mathics
does not execute. This seems counter to the information printed withmathics -h
. What should happen and what I would like to be able to do is thatPrint[1+1];
should be executed and thenmyfile.mathics
should be run as a script.I'm happy to help fix this if I can figure out where this functionality is being implemented. Can you point me to the right part of the code?
The text was updated successfully, but these errors were encountered: