fix: make sure user input is saved to history without alias expansion (4th same regression woo)

pull/143/head
TorchedSammy 2022-04-17 22:57:31 -04:00
parent c4438579f6
commit b0c950a96a
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 3 additions and 3 deletions

View File

@ -42,13 +42,13 @@ func runInput(input string, priv bool) {
cmdFinish(0, input, priv) cmdFinish(0, input, priv)
return return
} }
input, exitCode, err = handleSh(cmdString) input, exitCode, err = handleSh(input)
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, err) fmt.Fprintln(os.Stderr, err)
} }
cmdFinish(exitCode, input, priv) cmdFinish(exitCode, input, priv)
case "hybridRev": case "hybridRev":
_, _, err = handleSh(cmdString) _, _, err = handleSh(input)
if err == nil { if err == nil {
cmdFinish(0, input, priv) cmdFinish(0, input, priv)
return return
@ -65,7 +65,7 @@ func runInput(input string, priv bool) {
} }
cmdFinish(exitCode, input, priv) cmdFinish(exitCode, input, priv)
case "sh": case "sh":
input, exitCode, err = handleSh(cmdString) input, exitCode, err = handleSh(input)
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, err) fmt.Fprintln(os.Stderr, err)
} }