Attempt to fix failing test on macos for bash

This commit is contained in:
David Dworken 2022-04-18 21:41:49 -07:00
parent 1cc36fa0ef
commit 3553897101

View File

@ -107,7 +107,7 @@ func BuildHistoryEntry(args []string) (*data.HistoryEntry, error) {
if err != nil {
return nil, fmt.Errorf("failed to check if command was hidden: %v", err)
}
if shouldBeSkipped {
if shouldBeSkipped || strings.HasPrefix(cmd, " ") {
// Don't save commands that start with a space
return nil, nil
}