-
Notifications
You must be signed in to change notification settings - Fork 25
fix(shell): isolate execution context for exec/cos commands #996
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
Changes from 2 commits
906b731
461d965
b19f0eb
8d1e474
65b56c2
3697db9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -980,8 +980,7 @@ ClassMethod ShellInternal( | |
| } elseif (tCommandInfo = "load") { | ||
| do ..Load(.tCommandInfo) | ||
| } elseif (tCommandInfo = "exec") { | ||
| write ! | ||
| xecute tCommandInfo("parameters","expression") | ||
| do ..ExecuteCOS(.tCommandInfo) | ||
| } elseif (tCommandInfo = "install") { | ||
| do ..Install(.tCommandInfo) | ||
| } elseif (tCommandInfo = "reinstall") { | ||
|
|
@@ -2213,6 +2212,17 @@ ClassMethod Load( | |
| $$$ThrowOnError(log.Finalize($$$OK, devMode)) | ||
| } | ||
|
|
||
| ClassMethod ExecuteCOS(ByRef tCommandInfo) | ||
| { | ||
| set namespace = $namespace | ||
|
||
| try { | ||
| write ! | ||
| xecute tCommandInfo("parameters","expression") | ||
| } catch ex { | ||
|
||
| } | ||
| set $namespace = namespace | ||
| } | ||
|
|
||
| ClassMethod LoadInternal( | ||
| ByRef pCommandInfo, | ||
| pLog As %IPM.General.AbstractHistory) [ Internal ] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.