mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-03 04:03:25 +00:00
fix: make sure user input is saved to history without alias expansion (4th same regression woo)
This commit is contained in:
parent
c4438579f6
commit
b0c950a96a
6
exec.go
6
exec.go
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user