From eb0a4e728ec206116e9b2bf0065ecf93cfbb66f3 Mon Sep 17 00:00:00 2001 From: Jan Pfeifer Date: Fri, 5 Apr 2024 13:42:47 +0200 Subject: [PATCH] Removed cell-magic version of %test and %wasm -- they are "line-magic" and shouldnt be "cell-magic" --- internal/specialcmd/specialcmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/specialcmd/specialcmd.go b/internal/specialcmd/specialcmd.go index 40c3c4a..ad5e6d9 100644 --- a/internal/specialcmd/specialcmd.go +++ b/internal/specialcmd/specialcmd.go @@ -121,7 +121,7 @@ func execSpecialConfig(msg kernel.Message, goExec *goexec.State, cmdStr string, switch parts[0] { // Configures how cell will be executed. - case "%", "main", "args", "test", "%test": + case "%", "main", "args", "test": // Set arguments for execution, allows one to set flags, etc. goExec.Args = parts[1:] klog.V(2).Infof("Program args to use (%%%s): %+q", parts[0], goExec.Args) @@ -129,7 +129,7 @@ func execSpecialConfig(msg kernel.Message, goExec *goexec.State, cmdStr string, goExec.CellIsTest = true } // %% and %main are also handled specially by goexec, where it starts a main() clause. - case "wasm", "%wasm": + case "wasm": if len(parts) > 1 { return errors.Errorf("`%%wasm` takes no extra parameters.") }