Add VarSet#get_var and Environment#get_var - #92

This commit is contained in:
josh committed 2019-05-09 21:52:07 -04:00
1 parent dd3d468a28
commit 458eeaf93d
4 files changed
+77 -24

No files matched your search

+3 -3
View File
@@ -507,9 +507,9 @@ module Rscons
# @return [String] The command's standard output.
def shell(command)
shell_cmd =
if self["SHELL"]
flag = self["SHELLFLAG"] || (self["SHELL"] == "cmd" ? "/c" : "-c")
[self["SHELL"], flag]
if shell = get_var("SHELL")
flag = get_var("SHELLFLAG") || (shell == "cmd" ? "/c" : "-c")
[shell, flag]
else
Rscons.get_system_shell
end