[erlang-questions] otp 21.2

Sam Overdorf soverdor@REDACTED
Thu Dec 13 00:30:27 CET 2018


I believe you missed the point that they "erl" and "escript" should
have the same behavior.
Sam




On Wed, Dec 12, 2018 at 3:16 PM Richard O'Keefe <raoknz@REDACTED> wrote:
>
> The .erlang file is a customisation file for "erl".
> It's just like the way a .gdbinit file will be read
> if you run a C program under GDB.
>
>
> On Thu, 13 Dec 2018 at 12:08, Sam Overdorf <soverdor@REDACTED> wrote:
>>
>> "erl" still has the behavior of loading the ".erlangrc". Shouldn't it
>> have the same behavior as escript to be consistent?
>>
>> Thanks,
>> Sam
>>
>>
>>
>>
>>
>>
>> On Tue, Dec 11, 2018 at 10:44 PM Kenneth Lundin <kenneth@REDACTED> wrote:
>> >
>> >
>> >
>> > Den ons 12 dec. 2018 00:47 skrev Sam Overdorf <soverdor@REDACTED>:
>> >>
>> >> This version does not load my ".erlang" file when I run "escript".
>> >> If I run "erl" it gets loaded as expected.
>> >
>> >
>> > This is a change made on purpose, and introduced in 21.0.
>> >
>> > In the README for OTP-21.0 we have:
>> >
>> > --- Improvements and New Features ---
>> >
>> >   OTP-14439    Application(s): compiler, dialyzer, erts, stdlib
>> >
>> >                *** POTENTIAL INCOMPATIBILITY ***
>> >
>> >                Changed the default behaviour of .erlang loading:
>> >                .erlang is no longer loaded from the current directory.
>> >                c:erlangrc(PathList) can be used to search and load an
>> >                .erlang file from user specified directories.
>> >
>> >                escript, erlc, dialyzer and typer no longer load an
>> >                .erlang at all.
>> >
>> > /Kenneth Erlang/OTP, Ericsson
>> >>
>> >>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list