From 7048a8df551807ed72ff2d77baec17a9b65112ea Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 30 Oct 2025 19:15:50 -0500 Subject: interesting way that this works. bash suspends the current process --- doInteract.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doInteract.go b/doInteract.go index f5b7cea..82de3d1 100644 --- a/doInteract.go +++ b/doInteract.go @@ -66,7 +66,8 @@ func doEditorOnce() (string, error) { } // Run the editor - cmd := exec.Command("bash", "-i", "-c", editor+" "+tmpPath) + bashcmd := editor + " " + tmpPath + ";exit" + cmd := exec.Command("bash", "-i", "-c", bashcmd) cmd.Stdin = os.Stdin cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr -- cgit v1.2.3