Fix parsing badly formed environment variables #313

Closed
wants to merge 1 commit into
from

2 participants

@kpy3

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.

@tuncer tuncer was assigned Sep 21, 2012
@kpy3

This issue need more investigation.

@kpy3 kpy3 closed this Oct 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment