Skip to content

Commit dd83f8b

Browse files
authored
[Runner] Set SHELL environment variable inside the runner (#128)
The variable is inherit from the host, but some tools (like GDB) expects the variable to be set to the actual shell used inside the build environment.
1 parent 1d1deb4 commit dd83f8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Runner.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,9 @@ function platform_envs(platform::AbstractPlatform, src_name::AbstractString;
823823
"HISTFILE"=>"/meta/.bash_history",
824824
"TERM" => "screen",
825825
"SRC_NAME" => src_name,
826+
# The environment inherits the `SHELL` variable from the host, but some
827+
# tools refer to this variable, make it consistent with our environment
828+
"SHELL" => "/bin/bash",
826829
)
827830

828831
# If we're bootstrapping, that's it, quit out.

0 commit comments

Comments
 (0)