Skip to content

Conversation

@AshokThangavel
Copy link
Contributor

This PR introduces namespace isolation for the exec (and cos) command utility.

Currently, the exec command allows a user to execute arbitrary ObjectScript that can modify the process state. If a user executes a namespace switch (e.g., exec zn "%SYS"), the shell process remains in that new namespace context after the command completes. If that target namespace does not have the %IPM package mapped, the shell immediately crashes when it attempts to render the next prompt or error message because it can no longer find its own configuration classes.

Related Issues

Testing Conducted

  1. Namespace Drift Test: Ran exec zn "%SYS" from the USER namespace.
  • Result: The command executed, and the shell remained in (or returned to) the USER namespace. The prompt rendered correctly.
  1. Error Handling Test: Ran exec set x = 1/0 (divide by zero) to trigger an error.
  • Result: The error was caught, and the namespace was still correctly restored.
  1. Logic Verification: Confirmed that standard exec commands (like exec write 123) still function normally with no overhead.

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.

IPM exec Command Fails in Namespaces Without IPM Mappings After Execution

1 participant