<div dir="ltr"><div class="gmail_default" style="font-family:comic sans ms,sans-serif;font-size:small">Hi Richard,</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif;font-size:small">This change was introduced by <a href="https://github.com/erlang/otp/commit/c2d70945dce9cb09d5d7120d6e9ddf7faac8d230#diff-c74b26b137d05916452fd63150bc0ca0R113">this commit</a> and I think it is by implementation.</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif;font-size:small"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="comic sans ms, sans-serif">Best,</font><div><font face="comic sans ms, sans-serif">tison.</font></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr">Raimo Niskanen <<a href="mailto:raimo%2Berlang-questions@erlang.org">raimo+erlang-questions@erlang.org</a>> 于2018年9月6日周四 下午9:12写道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My mail client does not like your mail client.<br>
I think the list policies say something about not HTML-only posts...<br>
<br>
On Thu, Sep 06, 2018 at 05:20:10AM -0700, Richard Bowker wrote:<br>
> <DIV style="font-family:Arial, sans-serif; font-size:10pt;"><FONT size="2" style=""><FONT face="Arial, sans-serif">In OTP-20 os:getenv accepted either strings or binaries:</FONT><BR><BR><DIV style=""><FONT face="Arial, sans-serif">Erlang/OTP 20 [erts-9.3.3] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:10] [hipe] [kernel-poll:false]</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif"><BR></FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">Eshell V9.3.3 (abort with ^G)</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">1> os:getenv("").</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">false</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">2> os:getenv(<<"">>).</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">false</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">3> </FONT></DIV><DIV style="font-family: Arial, sans-serif;"><BR></DIV><DIV style="font-family: Arial, sans-serif;"><BR></<br>
DIV><DIV style=""><FONT face="Arial, sans-serif">however in OTP-21</FONT><BR><BR><DIV style=""><FONT face="Arial, sans-serif">Erlang/OTP 21 [erts-10.0.5] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1]</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif"><BR></FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">Eshell V10.0.5 (abort with ^G)</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">1> os:getenv("").</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">false</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">2> os:getenv(<<"">>).</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">** exception error: bad argument</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif"> in function os:get_env_var/1</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif"> called as os:get_env_var(<<>>)</FONT></DIV><DIV style=""><FONT face="Arial, sans-se<br>
rif"> in call from os:getenv/1 (os.erl, line 124)</FONT></DIV><DIV style=""><FONT face="Arial, sans-serif">3> </FONT></DIV><DIV style="font-family: Arial, sans-serif;"><BR><BR>Was this change deliberate?</DIV><DIV style="font-family: Arial, sans-serif;"><BR></DIV><DIV style="font-family: Arial, sans-serif;">Rich</DIV></DIV></FONT></DIV><br>
<br>
<br>
-- <br>
<br>
/ Raimo Niskanen, Erlang/OTP, Ericsson AB<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>