Merge pull request #6902 from unkarjedy/oldshell-fix-1.7.x

"oldshell" command should use `OldShell` on failure instead of `Shell`
This commit is contained in:
eugene yokota 2022-05-25 12:18:33 -04:00 committed by GitHub
commit 359dbed6a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ object BasicCommands {
case Some(line) =>
val newState = s
.copy(
onFailure = Some(Exec(Shell, None)),
onFailure = Some(Exec(OldShell, None)),
remainingCommands = Exec(line, s.source) +: Exec(OldShell, None) +: s.remainingCommands
)
.setInteractive(true)