.config file bug (probably not Windows specific)

Bjorn Gustavsson bjorn@REDACTED
Wed May 4 10:19:32 CEST 2005


We will probably fix the bug in R10B-6.

And for the record, I can also reproduce the bug on my Solaris machine:

strider 81> erl -config sys.config 
{error_logger,{{2005,5,4},{10,11,12}},'"./sys.config": none: <dot><whitespace> not found\n',[]}
{"could not start kernel pid",application_controller,{error,config_error}}
...

Also:

strider 85> wc sys.config 
       0       1      26 sys.config

/Bjorn

Anders Nygren <anders.nygren@REDACTED> writes:

> On 5/3/05, Matthias Lang <matthias@REDACTED> wrote:
> > Anders Nygren writes:
> > 
> >  > That is not true, on Linux it works with R10B-4,
> > 
> > Are you sure?
> > 
> >  > Case 1, nothing after .
> > 
> > Are you really sure?
> > 
> >  > anders@REDACTED:~/src/test> cat sys.config
> >  > [{mnesia,[{dir,"path"}]}].
> >  > anders@REDACTED:~/src/test> erl -config sys.config
> > 
> > Your 'sys.config' file probably contains an 0x0a after the '.'. If
> > there really was nothing at all after the '.', then the prompt after
> > the 'cat' command would not be on its own line.
> 
> anders@REDACTED:~/src/test> wc sys.config
>  1  1 32 sys.config
> 
> And vi only shows one line with text, like this
> 
> [{mnesia,[{dir,"path"}]}].%test
> ~
> ~
> 
> So to me it looks like it is only one line, but maybe I am mistaken.
> 
> > 
> > Here's what happens on my system when I use a config file which
> > doesn't contain anything after the '.'.
> > 
> >    otp_src_R10B-4 >hexdump -C /tmp/sys.config
> >    00000  5b 7b 6d 6e 65 73 69 61  2c 5b 7b 64 69 72 2c 22  |[{mnesia,[{dir,"|
> >    00010  70 61 74 68 22 7d 5d 7d  5d 2e                    |path"}]}].|
> >    0001a
> >    otp_src_R10B-4 >bin/erl -config /tmp/sys.config
> >    {error_logger,{{2005,5,4},{1,0,15}},'"/tmp/sys.config": none:
> >      <dot><whitespace> not found\n',[]}
> >    ...
> > 
> > Looks a lot like the behaviour you're claiming is windows-specific.
> > 
> > Do you have a test case which behaves differently on Windows and Linux?
> > 
> 
> I dont have access to the windows machine right now, I try to do it tomorrow.
> 
> /Anders
> 

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list