Skip to content

Conversation

@RinZ27
Copy link
Contributor

@RinZ27 RinZ27 commented Jan 31, 2026

Restricts the shell escape command ! when settings.ENABLE_SYSTEM_COMMANDS is False. This ensures that the shell frontend respects the sandbox model established in mathics-core.

I've updated both the main loop and the interrupt loop to provide an explicit error message when a shell command is blocked.

@rocky
Copy link
Member

rocky commented Jan 31, 2026

LGTM - and thanks! @mmatera your thoughts?

Copy link
Contributor

@mmatera mmatera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mmatera mmatera merged commit af2eb64 into Mathics3:master Jan 31, 2026
10 checks passed
@RinZ27 RinZ27 deleted the feat/restrict-shell-escape-sandboxed branch January 31, 2026 14:26
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

Successfully merging this pull request may close these issues.

3 participants