We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbfcb39 commit bbe02acCopy full SHA for bbe02ac
mathicsscript/__main__.py
@@ -333,6 +333,12 @@ def main(
333
334
evaluation = Evaluation(shell.definitions, output=TerminalOutput(shell))
335
query, source_code = evaluation.parse_feeder_returning_code(shell)
336
+ if len(source_code) and source_code[0] == "!":
337
+ os.system(source_code[1:])
338
+ # Should we test exit code for adding to history?
339
+ GNU_readline.add_history(source_code.rstrip())
340
+ continue
341
+
342
if shell.using_readline and hasattr(GNU_readline, "remove_history_item"):
343
current_pos = GNU_readline.get_current_history_length()
344
for pos in range(last_pos, current_pos - 1):
0 commit comments