lib/mattock/command-line.rb in mattock-0.3.3 vs lib/mattock/command-line.rb in mattock-0.3.4

- old
+ new

@@ -222,10 +222,11 @@ end class CommandChain < CommandLine def initialize @commands = [] + @command_environment = {} super(nil) end attr_reader :commands @@ -236,10 +237,10 @@ end #Honestly this is sub-optimal - biggest driver for considering the #mini-shell approach here. def command_environment - @commands.reverse.inject({}) do |env, command| + @command_environment = @commands.reverse.inject(@command_environment) do |env, command| env.merge(command.command_environment) end end def name