summaryrefslogtreecommitdiff
path: root/doInteract.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-30 19:15:50 -0500
committerJeff Carr <[email protected]>2025-10-30 19:15:50 -0500
commit7048a8df551807ed72ff2d77baec17a9b65112ea (patch)
tree8e0f45e233c75517003e58ff66f5e51de19cfaae /doInteract.go
parent0bcf305d121407f3756d2dd5d39220a0dec187b4 (diff)
interesting way that this works. bash suspends the current processHEADv0.0.36masterdevel
Diffstat (limited to 'doInteract.go')
-rw-r--r--doInteract.go3
1 files changed, 2 insertions, 1 deletions
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