Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mathics/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,10 @@ def interactive_eval_loop(shell, full_form: bool, strict_wl_output: bool):

show_echo(source_code, evaluation)
if len(source_code) and source_code[0] == "!":
subprocess.run(source_code[1:], shell=True)
if not settings.ENABLE_SYSTEM_COMMANDS:
evaluation.message("Run", "dis")
else:
subprocess.run(source_code[1:], shell=True)
shell.definitions.increment_line_no(1)
continue
if query is None:
Expand Down
Loading
Loading