basho/rebar — pull request #313 by kpy3 (2012-09-18 08:03:27+00:00)
Title: Fix parsing badly formed environment variables

In some cases os:getenv() returns list instead of string() for environment variable (see below).
> os:getenv().
["HISTFILE=/Users/yes/.zsh_history",
"ITERM_SESSION_ID=w0t1p0","PROMPT=[%n@%m:%1~]%# ",
"ITERM_PROFILE=Default","PROGNAME=erl",

[118,99,115,95,105,110,102,111,95,109,115,103|...],

"PWD=/Users/yes/Projects/rebar",
"USER=yes","vcs_info_msg_1_=",
"Apple_PubSub_Socket_Render=/tmp/launch-zugMm3/Render",
[...]|...]

When it happens rebar will crash in rebar_port_compiler:os_env/0. This patch fixes this problem.