On Wednesday, 29 August 2018 at 10:41:02 -0400, Dan Cross wrote:
On Wed, Aug 29, 2018 at 10:26 AM Theodore Y. Ts'o
<tytso(a)mit.edu> wrote:
> On Wed, Aug 29, 2018 at 03:06:40PM +1000, Greg 'groggy' Lehey wrote:
>>> In BSD 4.3 and early Linux (which is when I still was maintaining
>>> Linux's serial driver) you always had to do:
>>>
>>> stty dec < /dev/ttyS0
>>
>> Checking mckusick's source distribution, it seems that the -f option
>> (along with sanity) came in with 4.4BSD. It was in the original
>> sources imported into FreeBSD. 4.3BSD had such a bizarre syntax that
>> I suspect whatever you emulated must have come from a later date.
>
> BSD 4.4 Lite was released in 1994. (Lite2 was released in 1995.)
>
> Linux was started in 1991, and we had a stty from very early on --- by
> 1992 at the latest.
Right, which is why I wrote
I suspect whatever you emulated must have come from a later date.
In case that wasn't clear, I meant a later date than 4.3BSD.
I think that Greg is slightly mistaken; `stty` had
`-f` documented
in Net/2 (1991, though of course the entanglements there have been
discussed), but the option existed in Reno (1990, though it seems to
be absent from the man page).
No, this is exactly what I suspected, but was too lazy to check up on.
I don't have sources for Tahoe, Reno or Net/2 on my machine, but
FreeBSD 1.0 stty.c has:
static char sccsid[] = "(a)(#)stty.c 5.28 (Berkeley) 6/5/91";
And it has the -f flag. This was (just) before the very first version
of Linux. My understanding is that FreeBSD 1.0 was primarily derived
from Net/2. Of course, there's no reason to have chosen that version.
Greg
--
Sent from my desktop computer.
Finger grog(a)lemis.com for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed. If your Microsoft mail program
reports problems, please read
http://lemis.com/broken-MUA