Properly skip recording of commands prefixed with a space to match bash's history behavior

This commit is contained in:
David Dworken
2022-04-15 00:04:49 -07:00
parent 2fdfbb9d20
commit b09b725f49
5 changed files with 78 additions and 6 deletions

View File

@ -2,7 +2,6 @@ package shared
import (
"bytes"
"fmt"
"os"
"os/exec"
"path"
@ -100,7 +99,7 @@ func RunTestServer(t *testing.T) func() {
if strings.Contains(stderr.String()+stdout.String(), "failed to") {
t.Fatalf("server failed to do something: stderr=%#v, stdout=%#v", stderr.String(), stdout.String())
}
fmt.Printf("stderr=%#v, stdout=%#v\n", stderr.String(), stdout.String())
// fmt.Printf("stderr=%#v, stdout=%#v\n", stderr.String(), stdout.String())
}
}