anchor.diff:      {output_handler,
        fun(Line, Acc) ->
                ?CONSOLE("~s", [Line]),
  -             [Acc | Line]
  +             [Line | Acc]
        end};
   expand_sh_flag({use_stdout, false}) ->
       {output_handler,
        fun(Line, Acc) ->
  -             [Acc | Line]
  +             [Line | Acc]
        end};
   expand_sh_flag({cd, _CdArg} = Cd) ->
       {port_settings, Cd};
  
positive.code:     {port_settings, Env}.
  
  -spec log_and_abort(string(), integer()) -> no_return().
  log_and_abort(Command, Rc) ->
      ?ABORT("~s failed with error: ~w\n", [Command, Rc]).
  
  sh_loop(Port, Fun, Acc) ->
      receive
  
negative.code:     case sh_loop(Port, OutputHandler, []) of
          {ok, _Output} = Ok ->
              Ok;
          {error, Err} ->
              ErrorHandler(Command, Err)
      end.
  
  %% We need a bash shell to execute on windows
  