From 9565e33ea8efa1f81ff34cb85a3a46624ac797a2 Mon Sep 17 00:00:00 2001 From: "dmitrii.naumenko" Date: Mon, 23 May 2022 18:05:33 +0300 Subject: [PATCH] "oldshell" command should use `OldShell` on failure instead of `Shell` following up https://github.com/sbt/sbt/pull/3098 --- main-command/src/main/scala/sbt/BasicCommands.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main-command/src/main/scala/sbt/BasicCommands.scala b/main-command/src/main/scala/sbt/BasicCommands.scala index bb58bd301..06b7599f1 100644 --- a/main-command/src/main/scala/sbt/BasicCommands.scala +++ b/main-command/src/main/scala/sbt/BasicCommands.scala @@ -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)