Re: Enabling A Serial Port On 6.2

2007-07-08 Thread Lowell Gilbert
Tim Daneliuk <[EMAIL PROTECTED]> writes:

>I suspect that there are a great
> many places - shell scripts and C source code leap to mind - where the
> lack of a terminating newline at the end of a file does not cause the
> line to be ignored altogether.

In both of those cases, the relevant standards say that such input is
invalid.  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Enabling A Serial Port On 6.2

2007-07-08 Thread Tim Daneliuk

Lowell Gilbert wrote:

Tim Daneliuk <[EMAIL PROTECTED]> writes:


But ... the entry did not end with a newline and init apparently thus didn't
recognize it.  Ending the line made everything happy.  I am submitting
this as a (very minor) bug, since I do not believe this to be correct
behavior (but what do I know ;) ...


That's perfectly normal and age-old behaviour.  Part of the definition
of a "line" of text is that it ends in a newline...


Hmm  - while I acknowledge that I've seen this problem before (I've used
some variant of Unix since the late 1970s and FreeBSD since 2.x), whether
it is "perfectly normal" is arguable.  I suspect that there are a great
many places - shell scripts and C source code leap to mind - where the
lack of a terminating newline at the end of a file does not cause the
line to be ignored altogether.  I rather think this is an "age-old" bug
that never got fixed because of its minor importance.  In any case,
i've authored a PR to make note of it.  If I ever get the time, I'll
dig into the source myself and see if I can figure out where the wheels are
coming off...

--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Enabling A Serial Port On 6.2

2007-07-08 Thread Lowell Gilbert
Tim Daneliuk <[EMAIL PROTECTED]> writes:

> But ... the entry did not end with a newline and init apparently thus didn't
> recognize it.  Ending the line made everything happy.  I am submitting
> this as a (very minor) bug, since I do not believe this to be correct
> behavior (but what do I know ;) ...

That's perfectly normal and age-old behaviour.  Part of the definition
of a "line" of text is that it ends in a newline...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Enabling A Serial Port On 6.2

2007-07-07 Thread Tim Daneliuk

Tim Daneliuk wrote:

System is FreeBSD 6.2-STABLE.

I've added this to /etc/ttys:

  ttyd0   "/usr/libexec/getty dial.115200"unknown on insecure

And this to gettytabs:

  dial.115200:\
:np:to#30:hw:sp#115200:pp=/etc/ppp/pppserv

But when I 'kill -HUP 1' no getty process on ttyd0 shows up in the ps 
listing.


I found (and fixed) what was causing this, but it is very strange and I
am documenting here so others may avoid the pain.

At the *end* of  /etc/ttys the file, I put:

  ttyd0   "/usr/libexec/getty dial.115200"unknown on insecure


But ... the entry did not end with a newline and init apparently thus didn't
recognize it.  Ending the line made everything happy.  I am submitting
this as a (very minor) bug, since I do not believe this to be correct
behavior (but what do I know ;) ...


Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"