Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

VMS must die!


devel / comp.lang.c / iso646.h

SubjectAuthor
* iso646.hLawrence D'Oliveiro
+- Re: iso646.hLew Pitcher
+* Re: iso646.hJames Kuyper
|`- Re: iso646.hLawrence D'Oliveiro
`* Re: iso646.hDavid Brown
 +* Re: iso646.hScott Lurndal
 |`* Re: iso646.hLawrence D'Oliveiro
 | `* Re: iso646.hKeith Thompson
 |  `* Re: iso646.hLawrence D'Oliveiro
 |   `* Re: iso646.hKeith Thompson
 |    `* Re: iso646.hLawrence D'Oliveiro
 |     `- Re: iso646.hKaz Kylheku
 `* Re: iso646.hLawrence D'Oliveiro
  +- Re: iso646.hKaz Kylheku
  +* Re: iso646.hBlue-Maned_Hawk
  |`* Re: iso646.hLawrence D'Oliveiro
  | +- Re: iso646.hKaz Kylheku
  | `* Re: iso646.hJanis Papanagnou
  |  `* Re: iso646.hLawrence D'Oliveiro
  |   +- Re: iso646.hJanis Papanagnou
  |   `- Re: iso646.hKaz Kylheku
  +- Re: iso646.hTim Rentsch
  +* Re: iso646.hJanis Papanagnou
  |`* Re: iso646.hLawrence D'Oliveiro
  | `- Re: iso646.hJanis Papanagnou
  +* Re: iso646.hDavid Brown
  |`* Re: iso646.hKaz Kylheku
  | +- Re: iso646.hbart
  | +* Re: iso646.hJanis Papanagnou
  | |+* Re: iso646.hKeith Thompson
  | ||`* Re: iso646.hLawrence D'Oliveiro
  | || +* Re: iso646.hKeith Thompson
  | || |`* Re: iso646.hDavid Brown
  | || | `- Re: iso646.hJanis Papanagnou
  | || +* Re: iso646.hLew Pitcher
  | || |`* Re: iso646.hLawrence D'Oliveiro
  | || | +- Re: iso646.hLew Pitcher
  | || | +* Re: iso646.hKaz Kylheku
  | || | |`- Re: iso646.hChris M. Thomasson
  | || | `- Re: iso646.hScott Lurndal
  | || `- Re: iso646.hKaz Kylheku
  | |`* Re: iso646.hKaz Kylheku
  | | +- Re: iso646.hJanis Papanagnou
  | | `* Re: iso646.hJanis Papanagnou
  | |  `- Re: iso646.hKaz Kylheku
  | `- Re: iso646.hDavid Brown
  +- Re: iso646.hbart
  `* Re: iso646.hMalcolm McLean
   +* Re: iso646.hLew Pitcher
   |+- Re: iso646.hKaz Kylheku
   |+* Re: iso646.hLawrence D'Oliveiro
   ||+* Re: iso646.hKeith Thompson
   |||`* Re: iso646.hLawrence D'Oliveiro
   ||| +* Re: iso646.hKeith Thompson
   ||| |+- Re: iso646.hLawrence D'Oliveiro
   ||| |`- Re: iso646.hMalcolm McLean
   ||| `- Re: iso646.hJanis Papanagnou
   ||`- Re: iso646.hJanis Papanagnou
   |`* C/CPP macro conventions (was Re: iso646.h)Janis Papanagnou
   | `* Re: C/CPP macro conventions (was Re: iso646.h)Kaz Kylheku
   |  +- Re: C/CPP macro conventions (was Re: iso646.h)Janis Papanagnou
   |  +- Re: C/CPP macro conventions (was Re: iso646.h)David Brown
   |  `- Re: C/CPP macro conventions (was Re: iso646.h)Blue-Maned_Hawk
   +* Re: iso646.hbart
   |+* Re: iso646.hScott Lurndal
   ||`* Re: iso646.hJames Kuyper
   || +* Re: iso646.hKalevi Kolttonen
   || |+* Re: iso646.hLawrence D'Oliveiro
   || ||`* Re: iso646.hKaz Kylheku
   || || +* Re: iso646.hKalevi Kolttonen
   || || |`* Re: iso646.hJanis Papanagnou
   || || | `* Re: iso646.hJames Kuyper
   || || |  +* Re: iso646.hJanis Papanagnou
   || || |  |+- Re: iso646.hJanis Papanagnou
   || || |  |+* Re: iso646.hKalevi Kolttonen
   || || |  ||`* Re: iso646.hKalevi Kolttonen
   || || |  || `* Re: iso646.hLawrence D'Oliveiro
   || || |  ||  `- Re: iso646.hDavid Brown
   || || |  |`* Re: iso646.hKeith Thompson
   || || |  | `- Re: iso646.hKalevi Kolttonen
   || || |  +- Re: iso646.hLawrence D'Oliveiro
   || || |  `* Re: iso646.hKaz Kylheku
   || || |   `* Re: iso646.hJames Kuyper
   || || |    +* Re: iso646.hDavid Brown
   || || |    |+* Re: iso646.hJanis Papanagnou
   || || |    ||`* Re: iso646.hDavid Brown
   || || |    || `- Re: iso646.hJanis Papanagnou
   || || |    |`* Re: iso646.hbart
   || || |    | `- Re: iso646.hDavid Brown
   || || |    `- Re: iso646.hTim Rentsch
   || || `- Re: iso646.hJanis Papanagnou
   || |`- Unix shell conditionals (was Re: iso646.h)Janis Papanagnou
   || `* Re: iso646.hScott Lurndal
   ||  +* Re: iso646.hKaz Kylheku
   ||  |`* Re: iso646.hbart
   ||  | `- Re: iso646.hKaz Kylheku
   ||  +- Re: iso646.hKeith Thompson
   ||  `* Re: iso646.hJames Kuyper
   ||   `- Re: iso646.hJanis Papanagnou
   |+* Python (Re: iso646.h)Kalevi Kolttonen
   ||+* Re: Python (Re: iso646.h)bart
   ||+* Re: Python (Re: iso646.h)Keith Thompson
   ||+* Re: Python (Re: iso646.h)Lawrence D'Oliveiro
   ||`- Re: Python (Re: iso646.h)Dan Cross
   |+* Re: iso646.hKeith Thompson
   |`* Re: iso646.hMalcolm McLean
   `* Re: iso646.hLawrence D'Oliveiro

Pages:1234567891011121314151617181920212223242526
Re: iso646.h

<updmg5$1ihsr$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32105&group=comp.lang.c#32105

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 15:46:27 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <updmg5$1ihsr$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad>
<upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad>
<upb714$12694$1@dont-email.me> <upb9bm$12ht9$1@dont-email.me>
<upbovh$157n2$1@dont-email.me> <updkao$1i2he$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 31 Jan 2024 14:46:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ecbc77406af234d2792a8b1d5347e22e";
logging-data="1656731"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/eUKwEjOuHMotdlV19P99r"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:J3HbcGLqrdes7cfkdi7jvX1yySY=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <updkao$1i2he$2@dont-email.me>
 by: Janis Papanagnou - Wed, 31 Jan 2024 14:46 UTC

On 31.01.2024 15:09, David Brown wrote:
>
> I would expect that the majority of uses of "cat" are with just one
> file,

And of course just because of ignorance; the majority of (but not all)
uses with just one file are UUOCs.

> but certainly it is useful when you want to combine files in
> different ways.

I don't know of any concatenations in "different" ways, but of course
there's some more of the other usages that are supported by options.

Janis

Re: iso646.h

<20240131170312.00006f30@yahoo.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32106&group=comp.lang.c#32106

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: already5...@yahoo.com (Michael S)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 17:03:12 +0200
Organization: A noiseless patient Spider
Lines: 104
Message-ID: <20240131170312.00006f30@yahoo.com>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com>
<uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me>
<up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me>
<up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com>
<20240131124332.00002c05@yahoo.com>
<upddks$1gkml$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="dde7e6588c421492c1bae181782363df";
logging-data="1612964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dJuiJ7PUkyvR8An/qkPi54UnNzv3TFcE="
Cancel-Lock: sha1:S7tzaCqRuI3dhsAsD/PgxEV2WpI=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
 by: Michael S - Wed, 31 Jan 2024 15:03 UTC

On Wed, 31 Jan 2024 12:15:23 +0000
Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:

> On 31/01/2024 10:43, Michael S wrote:
> > On Tue, 30 Jan 2024 23:18:21 -0800
> > Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
> >
> >> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
> >>
> >>> On 30/01/2024 07:27, Tim Rentsch wrote:
> >>>
> >>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
> >>>>
> >>>>> On 29/01/2024 20:10, Tim Rentsch wrote:
> >>>>>
> >>>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
> >>>>>>
> >>>>>> [...]
> >>>>>>
> >>>>>>> I've never used standard output for binary data.
> >>>>>>> [...] it strikes me as a poor design decision.
> >>>>>>
> >>>>>> How so?
> >>>>>
> >>>>> Because the output can't be inspected by humans, and because it
> >>>>> might have unusual effects if passed though systems designed to
> >>>>> handle human-readable text. For instance in some systems
> >>>>> designed to receive ASCII text, there is no distinction between
> >>>>> the nul byte and "waiting for next data byte". Obviously this
> >>>>> will cause difficuties if the data is binary.
> >>>>> Also many binary formats can't easily be extended, so you can
> >>>>> pass one image and that's all. While it is possible to devise a
> >>>>> text format which is similar, in practice text formats usually
> >>>>> have enough redundancy to be easily extended.
> >>>>>
> >>>>> So it's harder to correct errors, more prone to errors, and
> >>>>> harder to extend.
> >>>>
> >>>> Your reasoning is all gobbledygook. Your comments reflect only
> >>>> limitations in your thinking, not any essential truth about using
> >>>> standard out for binary data.
> >>>
> >>> I must admit that it's nothing I have ever done or considered
> >>> doing.
> >>>
> >>> [...]
> >>
> >> Simple example (disclaimer: not tested):
> >>
> >> ssh foo 'cd blah ; tar -cf - . | gzip -c' | \
> >> (mkdir foo.blah ; cd foo.blah ; gunzip -c | tar -xf -)
> >>
> >> Of the five main programs in this command, four are using
> >> standard out to send binary data:
> >>
> >> tar -cf - .
> >> gzip -c
> >> ssh foo [...]
> >> gunzip -c
> >>
> >> The tar -xf - at the end reads binary data on standard in
> >> but doesn't output any (or anything else for that matter).
> >>
> >> It is FAR more cumbersome to accomplish what this command
> >> is doing without sending binary data through standard out.
> >
> > If I am not mistaken, tar, gzip and gunzip do not write binary data
> > to standard output by default. They should be specifically told to
> > do so. For ssh I don't know. Anyway, ssh is not a "normal" program
> > so it's not surprising when textuality of ssh output is the same as
> > textuality of the command it carries.
> >
> >> Anyone who doesn't understand this doesn't understand Unix.
> >
> > Frankly, Unix redirection racket looks like something hacked
> > together rather than designed as result of the solid thinking
> > process. As long as there were only standard input and output it
> > was sort of logical. But when they figured out that it is
> > insufficient, they had chosen a quick hack instead of constructing
> > a solution that wouldn't offend engineering senses of any
> > non-preconditioned observer.
> It was designed for very memory constrained systems which handled
> text on a line by line basis. So one line of a long file wuld be
> processed and passed down the pipeline, and you wouldn't need
> temporary disk files or large amounts of memory. I'm sure it worked
> quite well for that.
>
>

A concept of pipes is fine. I was not talking about that side.

My objection is with each program having exactly 1 special input and
exactly 2 special outputs. Instead of having, say, up to 5 of each,
fully interchangeable with the first of the five being special only in
that that it is a default and as such allows for shorter syntax in the
shell.

I would be surprised if something like that was not done by somebody.
I would be even more surprised if idea did not cross the mind of Unix
pioneers. However they decided to add stderr and to stop here. Most
likely, because they didn't take themselves as seriously as few posters
here take them 45-50 years later.

Re: iso646.h

<7utuN.273507$Wp_8.141197@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32108&group=comp.lang.c#32108

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.bbs.nz!news.quux.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad> <upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad> <upb714$12694$1@dont-email.me> <upb9bm$12ht9$1@dont-email.me> <upcnlu$1db7v$2@dont-email.me>
Lines: 19
Message-ID: <7utuN.273507$Wp_8.141197@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 31 Jan 2024 15:15:15 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 31 Jan 2024 15:15:15 GMT
X-Received-Bytes: 1727
 by: Scott Lurndal - Wed, 31 Jan 2024 15:15 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>On Tue, 30 Jan 2024 17:49:57 +0100, David Brown wrote:
>
>> The use of CRLF as a standard for line endings in files was, I believe,
>> from CP/M ...
>
>Which I think copied it from DEC minicomputer systems.
>
>Fun fact: on some of those DEC systems (which I used when they were still
>being made), you could end a line with CR-LF, or LF-CR-NUL.
>
>What was the NUL for? Padding. Why did it need padding? (This was before
>CRT terminals.)

Unix built the nul-padding into the terminal driver. Users used
the stty command to set the number of nul's (based on the time it
took for the ASR33 carriage to return to the home position after
it recieved a CR).

Re: iso646.h

<JvtuN.273509$Wp_8.234156@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32109&group=comp.lang.c#32109

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad> <upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad> <87cyti61o4.fsf@nosuchdomain.example.com> <upcnq4$1db7v$3@dont-email.me>
Lines: 19
Message-ID: <JvtuN.273509$Wp_8.234156@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 31 Jan 2024 15:16:57 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 31 Jan 2024 15:16:57 GMT
X-Received-Bytes: 1865
 by: Scott Lurndal - Wed, 31 Jan 2024 15:16 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>On Tue, 30 Jan 2024 11:50:35 -0800, Keith Thompson wrote:
>
>> VMS (now OpenVMS) was also a significant system at the time, and it had
>> some rather complex file formats ...
>
>It relied on extra file metadata called “record attributes” in order to
>make sense of the file format. It was quite common to transfer files from
>other systems, and have them not be readable until you had set appropriate
>record attributes on them. Picky, picky, I know.

At my first job, I had to write a tool (in macro32) to support access
to any type of file, regardless of the RMS attributes. Wasn't a trivial
task like it would have been on a unix system.

VMS inherited that from the mainframe systems whose filesystem were
based around COBOL file handling.

At least it was far superior to IBM's PDS and associated crap.

Re: iso646.h

<BwtuN.273510$Wp_8.25204@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32110&group=comp.lang.c#32110

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.network!news.neodome.net!weretis.net!feeder8.news.weretis.net!nntp.comgw.net!peer02.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad> <upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad> <87cyti61o4.fsf@nosuchdomain.example.com> <upcnq4$1db7v$3@dont-email.me> <updbo9$1ga92$1@dont-email.me> <20240131135802.00001bf6@yahoo.com> <upder4$1gqso$1@dont-email.me>
Lines: 36
Message-ID: <BwtuN.273510$Wp_8.25204@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 31 Jan 2024 15:17:53 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 31 Jan 2024 15:17:53 GMT
X-Received-Bytes: 2296
 by: Scott Lurndal - Wed, 31 Jan 2024 15:17 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>On 31.01.2024 12:58, Michael S wrote:
>> On Wed, 31 Jan 2024 12:43:04 +0100
>> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
>>
>>> On 31.01.2024 07:02, Lawrence D'Oliveiro wrote:
>>>> On Tue, 30 Jan 2024 11:50:35 -0800, Keith Thompson wrote:
>>>>
>>>>> VMS (now OpenVMS) was also a significant system at the time, and
>>>>> it had some rather complex file formats ...
>>>>
>>>> [...]
>>>>
>>>> Apparently Linus Torvalds used VMS for a while, and hated it.
>>>
>>> I don't understand the intention of this comment.
>>> VMS and Torvalds are completely different eras.
>>> And were is the relation?
>>>
>>
>> Linus is older than you probably realize.
>
>Why do you think that I'd be thinking that?
>
>I know that he's quite some years younger than I am. So what?
>
>> He entered the University of
>> Helsinki in 1988. Back then VMS was only slightly behind its peak of
>> popularity.
>
>What? - I'm not sure where you're coming from.
>
>I associate DEC's VMS with the old DEC VAX-11 system, both
>from around the mid of the 1970's.

Early customer systems were shipped around 1979, IIRC. We had four.

Re: iso646.h

<IytuN.273511$Wp_8.20406@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32111&group=comp.lang.c#32111

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.nntp4.net!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me> <upb5q3$11vej$1@dont-email.me> <upb7ts$12b6n$1@dont-email.me> <upco3j$1db7v$7@dont-email.me> <updiud$1hgpi$1@dont-email.me>
Lines: 28
Message-ID: <IytuN.273511$Wp_8.20406@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 31 Jan 2024 15:20:08 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 31 Jan 2024 15:20:08 GMT
X-Received-Bytes: 2539
 by: Scott Lurndal - Wed, 31 Jan 2024 15:20 UTC

David Brown <david.brown@hesbynett.no> writes:
>On 31/01/2024 07:07, Lawrence D'Oliveiro wrote:
>> On Tue, 30 Jan 2024 17:25:31 +0100, David Brown wrote:
>>
>>> Mixing binary data with formatted text data is very unlikely to be
>>> useful.
>>
>> PDF does exactly that. To the point where the spec suggests putting some
>> random unprintable bytes up front, to distract format sniffers from
>> thinking they’re looking at a text file.
>
>PDF files start with the "magic" indicator "%PDF", which is enough for
>many programs to identify them correctly. And they are usually
>compressed so that the content text is not directly readable or
>identifiable as strings. If they are not compressed, then yes, there is
>can be text mixed in with everything else. But I would not call that
>"mixing binary data and formatted text" - I would just say that some of
>the binary data happens to be strings. It's the same as elf files
>containing copies of strings from the program, or identifiers for
>external linking.
>
>However, I learned a new trick when checking that I was not mistaken
>about this - it turns out that "less file.pdf" gives a nice text-only
>output from the pdf file (by passing it through "lesspipe"). There's
>always something new to learn from inane conversations on Usenet :-)

For many years, I used a tool called 'antiword' to read legacy microsoft
windows .doc files (before .docx).

Re: iso646.h

<fztuN.273512$Wp_8.102236@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32112&group=comp.lang.c#32112

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <upas3j$10bft$1@dont-email.me> <upb5q3$11vej$1@dont-email.me> <K79uN.374649$p%Mb.218835@fx15.iad> <upb8c8$12do6$1@dont-email.me> <upbj9c$14443$2@dont-email.me> <upcobm$1db7v$9@dont-email.me>
Lines: 9
Message-ID: <fztuN.273512$Wp_8.102236@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 31 Jan 2024 15:20:43 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 31 Jan 2024 15:20:43 GMT
X-Received-Bytes: 1307
 by: Scott Lurndal - Wed, 31 Jan 2024 15:20 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>On Tue, 30 Jan 2024 19:39:24 +0000, Richard Harnden wrote:
>
>> Nobody uses printf to output binary data.
>
>Do terminal-control escape sequences count?

Or UTF-*?

Re: iso646.h

<mBtuN.273513$Wp_8.157203@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32113&group=comp.lang.c#32113

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!nntp.comgw.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <865xzaas3m.fsf@linuxsc.com> <upd0pj$1elmk$1@dont-email.me> <updl0s$1i2he$3@dont-email.me>
Lines: 43
Message-ID: <mBtuN.273513$Wp_8.157203@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 31 Jan 2024 15:22:58 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 31 Jan 2024 15:22:58 GMT
X-Received-Bytes: 3121
 by: Scott Lurndal - Wed, 31 Jan 2024 15:22 UTC

David Brown <david.brown@hesbynett.no> writes:
>On 31/01/2024 09:36, Malcolm McLean wrote:

>> The reason is that I'd only run the command once, and it's so likely
>> that there will be either a syntax misunderstanding or a typing error
>> that I'd have to test to ensure that it was right. And by the time
>> you've done that any time saved by typing only one commandline is lost.
>> Of course if you are writing scripts then that doesn't apply. But now
>> it's effectively a programming language, and, from the example code, a
>> very poorly designed one which is cryptic and fussy and liable to be
>> hard to maintain. So it's better to use a language like Perl to achieve
>> the same thing, and I did have a few Perl scripts handy for repetitive
>> jobs of that nature in my Unix days.
>>
>
>That gave me a laugh! You think bash is cryptic, fussy and poorly
>designed, and choose /Perl/ as the alternative :-)
>
>> You admit this with "not tested". Says it all. '"Understandig Unix" is
>> an intellectually useless achievement. You might have to do it if you
>> have to use the system and debug and trouble shoot. But it's nothing to
>> be proud about.
>>
>
>It is "useless" for people who don't use it. For people who /do/ use
>it, is very useful.
>
>I've used sequences like Tim's - it's a way to copy data remotely from a
>different machine. I would likely write it slightly differently - I'd
>probably do the mkdir and cd first, thus avoiding the need for a
>subshell, and I'd use "ssh -C" or "tar -z" to do the compression rather
>than "gzip".
>
>There's no doubt that the learning curve is longer for doing this sort
>of thing from the command line than using gui programs. There is also
>no doubt that when you are used to it, command line utilities and a good
>shell are very flexible and efficient.
>
>Learn to use the tools that are conveniently available, and then pick
>the right tool for the job - whether it is command line or gui.

And there are often more than one tool for the job. e.g. rsync(1)
for copying data remotely.

Re: iso646.h

<gDtuN.273514$Wp_8.83091@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32114&group=comp.lang.c#32114

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.bbs.nz!tncsrv06.tnetconsulting.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <865xzaas3m.fsf@linuxsc.com> <20240131124332.00002c05@yahoo.com>
Lines: 24
Message-ID: <gDtuN.273514$Wp_8.83091@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 31 Jan 2024 15:25:00 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 31 Jan 2024 15:25:00 GMT
X-Received-Bytes: 1765
 by: Scott Lurndal - Wed, 31 Jan 2024 15:25 UTC

Michael S <already5chosen@yahoo.com> writes:
>On Tue, 30 Jan 2024 23:18:21 -0800
>Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:

>
>> Anyone who doesn't understand this doesn't understand Unix.
>
>Frankly, Unix redirection racket looks like something hacked together
>rather than designed as result of the solid thinking process.

It seems you don't understand Unix.

>As long as there were only standard input and output it was sort of
>logical. But when they figured out that it is insufficient, they had
>chosen a quick hack instead of constructing a solution that wouldn't
>offend engineering senses of any non-preconditioned observer.

You mean like

exec 3< /path/to/input/file
read -u3 line_from_input file

How does that offend your engineering senses?

Re: iso646.h

<updopb$1iv0b$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32115&group=comp.lang.c#32115

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 16:25:30 +0100
Organization: A noiseless patient Spider
Lines: 55
Message-ID: <updopb$1iv0b$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com> <uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me> <up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me> <up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <upd0pj$1elmk$1@dont-email.me>
<updl0s$1i2he$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 31 Jan 2024 15:25:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ecbc77406af234d2792a8b1d5347e22e";
logging-data="1670155"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uHNoL7PuoPI7Mbemlj2lJ"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:ki6I2rHdWC4yOTuM+AoEsI/IQjc=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <updl0s$1i2he$3@dont-email.me>
 by: Janis Papanagnou - Wed, 31 Jan 2024 15:25 UTC

On 31.01.2024 15:21, David Brown wrote:
> On 31/01/2024 09:36, Malcolm McLean wrote:
>> [ I snipped a couple of "I actually don't know/need it" things ]
>>
>> But now it's effectively a programming language, and, from the example
>> code, a very poorly designed one which is cryptic and fussy and liable
>> to be hard to maintain. So it's better to use a language like Perl to
>> achieve the same thing, and I did have a few Perl scripts handy for
>> repetitive jobs of that nature in my Unix days.
>
> That gave me a laugh! You think bash is cryptic, fussy and poorly
> designed, and choose /Perl/ as the alternative :-)

I don't think it's that clear a joke. The Unix shell is extremely
error prone to program, and you should not let a newbie write shell
programs without careful supervision. ("newbie" [in shell context]
= less than 10 years of practical experience. - Am I exaggerating?
Maybe. But not much.)

And yes, Shell is cryptic, but, OTOH, it's also a programming
language with powerful concepts (taken from Algol68). It wouldn't
appear to me, though, to classify Perl as non-cryptic. You can
write more or less legible shell code; also depends on experience.
You have functions to structure your code, the control constructs,
error handling, the I/O glue, all smoothly fitting together. But,
to be honest, I say this with modern shells in mind (ksh, bash,
zsh), not so much the POSIX subset, and even less the Bourne sh.

Perl's advantage is probably that you have the same interface on
all platforms [where it is installed]. Not having to distinguish,
say, the 'ps' options from one Unix system to another. And it has
a lot more features, data types, and supporting external modules.

>
> There's no doubt that the learning curve is longer for doing this sort
> of thing from the command line than using gui programs. There is also
> no doubt that when you are used to it, command line utilities and a good
> shell are very flexible and efficient.

The big advantage of non-GUI is for process automation. With GUI
oriented applications you can mainly only interactively (=slow and
cumbersome) do what it provides. Rarely GUI applications support a
scripting interface, and if so it's then typically some proprietary
non-standard language.

>
> Learn to use the tools that are conveniently available, and then pick
> the right tool for the job - whether it is command line or gui.

The Unix shell is at least standard and available on Unix systems.
(Perl is no standard on Unix. And you may not be allowed to install
it.)

Janis

Re: iso646.h

<7HtuN.273515$Wp_8.87289@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32116&group=comp.lang.c#32116

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad> <upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad> <upb714$12694$1@dont-email.me> <upb9bm$12ht9$1@dont-email.me> <upbovh$157n2$1@dont-email.me> <updkao$1i2he$2@dont-email.me>
Lines: 34
Message-ID: <7HtuN.273515$Wp_8.87289@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 31 Jan 2024 15:29:07 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 31 Jan 2024 15:29:07 GMT
X-Received-Bytes: 2261
 by: Scott Lurndal - Wed, 31 Jan 2024 15:29 UTC

David Brown <david.brown@hesbynett.no> writes:
>On 30/01/2024 22:16, James Kuyper wrote:
>> On 1/30/24 11:49, David Brown wrote:
>> ...
>>> If the program can reasonably be expected to generate binary output,
>>> then it is the user's fault if they do this accidentally. Examples
>>> shown in this thread include cat and zcat - that's what these programs do.
>>
>> ? There's no problem using cat to concatenate binary files. I've used
>> 'split' to split binary files into smaller pieces, and then used 'cat'
>> to recombine them, and it worked fine. I don't remember why, but I had
>> to transfer the files from one place to another by a method that imposed
>> an upper limit on the size of individual files.
>>
>
>I think there's a misunderstanding here - I gave "cat" is an example of
>a program that /can/ be expected to produce binary output. (It can also
>produce text output - you get what you put in.) So it is the user's
>fault if the type "cat /bin/cat" and are surprised by a mess in their
>terminal.

Quick and dirty editor:

$ cat > /tmp/file < /dev/tty
line1
line2
line3
^D
$ $ cat /tmp/file
line1
line2
line3
$

Re: iso646.h

<updp8p$1j1i5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32117&group=comp.lang.c#32117

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 16:33:44 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <updp8p$1j1i5$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <865xzaas3m.fsf@linuxsc.com>
<20240131124332.00002c05@yahoo.com> <gDtuN.273514$Wp_8.83091@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 31 Jan 2024 15:33:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ecbc77406af234d2792a8b1d5347e22e";
logging-data="1672773"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CsP8473iXkNx03SoG5BZu"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:AA7msr0AtaOs7rtLLfGR6BSELnQ=
In-Reply-To: <gDtuN.273514$Wp_8.83091@fx17.iad>
 by: Janis Papanagnou - Wed, 31 Jan 2024 15:33 UTC

On 31.01.2024 16:25, Scott Lurndal wrote:
> Michael S <already5chosen@yahoo.com> writes:
>> [...]
>
> You mean like
>
> exec 3< /path/to/input/file
> read -u3 line_from_input file

Careful with non-standard extensions like '-u'.

>
> How does that offend your engineering senses?

It probably would if the standard redirection pattern
would have been used here. It's certainly more "cryptic"
than '-u3'. ;-)

Janis

Re: iso646.h

<20240131174249.00006e06@yahoo.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32118&group=comp.lang.c#32118

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: already5...@yahoo.com (Michael S)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 17:42:49 +0200
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <20240131174249.00006e06@yahoo.com>
References: <uokhnk$eiln$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com>
<20240131124332.00002c05@yahoo.com>
<gDtuN.273514$Wp_8.83091@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="dde7e6588c421492c1bae181782363df";
logging-data="1612964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lcn9b4gKe6E2F9BpfmB6DjB5veBfPhRY="
Cancel-Lock: sha1:OOi/M1BmxqOn5rzFj2PV/9+wb0s=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
 by: Michael S - Wed, 31 Jan 2024 15:42 UTC

On Wed, 31 Jan 2024 15:25:00 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:

> Michael S <already5chosen@yahoo.com> writes:
> >On Tue, 30 Jan 2024 23:18:21 -0800
> >Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
>
> >
> >> Anyone who doesn't understand this doesn't understand Unix.
> >
> >Frankly, Unix redirection racket looks like something hacked together
> >rather than designed as result of the solid thinking process.
>
> It seems you don't understand Unix.
>

That's likely.
I learned it during short course ~30 years ago, then read 2 or 3
books about it and then used it quite sporadically.

> >As long as there were only standard input and output it was sort of
> >logical. But when they figured out that it is insufficient, they had
> >chosen a quick hack instead of constructing a solution that wouldn't
> >offend engineering senses of any non-preconditioned observer.
>
> You mean like
>
> exec 3< /path/to/input/file
> read -u3 line_from_input file
>
> How does that offend your engineering senses?
>

That was not in 2-3 books that I had read. I can't say that I understand
what is going on, what environment we are and whether what you show is
generic or specific to 'exec' and 'read'.

Re: iso646.h

<WZtuN.273518$Wp_8.264429@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32119&group=comp.lang.c#32119

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <865xzaas3m.fsf@linuxsc.com> <20240131124332.00002c05@yahoo.com> <upddks$1gkml$1@dont-email.me> <20240131170312.00006f30@yahoo.com>
Lines: 34
Message-ID: <WZtuN.273518$Wp_8.264429@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 31 Jan 2024 15:49:10 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 31 Jan 2024 15:49:10 GMT
X-Received-Bytes: 2352
 by: Scott Lurndal - Wed, 31 Jan 2024 15:49 UTC

Michael S <already5chosen@yahoo.com> writes:
>On Wed, 31 Jan 2024 12:15:23 +0000
>Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:

>> It was designed for very memory constrained systems which handled
>> text on a line by line basis. So one line of a long file wuld be
>> processed and passed down the pipeline, and you wouldn't need
>> temporary disk files or large amounts of memory. I'm sure it worked
>> quite well for that.
>>
>>
>
>A concept of pipes is fine. I was not talking about that side.
>
>My objection is with each program having exactly 1 special input and
>exactly 2 special outputs. Instead of having, say, up to 5 of each,
>fully interchangeable with the first of the five being special only in
>that that it is a default and as such allows for shorter syntax in the
>shell.

Each program has 1024 (on my system - it's configurable on a per-process
basis) fully interchangable "inputs" and "outputs" (also known as files).

$ application 5> /tmp/file5

will redirect file descriptor five to the specified file.

There's nothing special about stdin, stdout or stderr other than
that they are tags applied to the first three file descriptors.

There is a convention the that the first file descriptor
is used for input, the second for output and the third
for diagnostic output. But it's just a convention

Re: iso646.h

<updqd7$1j22q$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32120&group=comp.lang.c#32120

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 15:53:11 +0000
Organization: A noiseless patient Spider
Lines: 122
Message-ID: <updqd7$1j22q$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com> <uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me> <up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me> <up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <20240131124332.00002c05@yahoo.com>
<upddks$1gkml$1@dont-email.me> <20240131170312.00006f30@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 31 Jan 2024 15:53:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ae443434ff00458fcd5a7b294b8fafb1";
logging-data="1673306"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tiNPWpQlaEaQSwRYs9nrK7+sY5IDVQCw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Ci6QSotd8uVyOZwBvRxu7xJ9P+Q=
In-Reply-To: <20240131170312.00006f30@yahoo.com>
Content-Language: en-GB
 by: Malcolm McLean - Wed, 31 Jan 2024 15:53 UTC

On 31/01/2024 15:03, Michael S wrote:
> On Wed, 31 Jan 2024 12:15:23 +0000
> Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:
>
>> On 31/01/2024 10:43, Michael S wrote:
>>> On Tue, 30 Jan 2024 23:18:21 -0800
>>> Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
>>>
>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>>
>>>>> On 30/01/2024 07:27, Tim Rentsch wrote:
>>>>>
>>>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>>>>
>>>>>>> On 29/01/2024 20:10, Tim Rentsch wrote:
>>>>>>>
>>>>>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>>>>>>
>>>>>>>> [...]
>>>>>>>>
>>>>>>>>> I've never used standard output for binary data.
>>>>>>>>> [...] it strikes me as a poor design decision.
>>>>>>>>
>>>>>>>> How so?
>>>>>>>
>>>>>>> Because the output can't be inspected by humans, and because it
>>>>>>> might have unusual effects if passed though systems designed to
>>>>>>> handle human-readable text. For instance in some systems
>>>>>>> designed to receive ASCII text, there is no distinction between
>>>>>>> the nul byte and "waiting for next data byte". Obviously this
>>>>>>> will cause difficuties if the data is binary.
>>>>>>> Also many binary formats can't easily be extended, so you can
>>>>>>> pass one image and that's all. While it is possible to devise a
>>>>>>> text format which is similar, in practice text formats usually
>>>>>>> have enough redundancy to be easily extended.
>>>>>>>
>>>>>>> So it's harder to correct errors, more prone to errors, and
>>>>>>> harder to extend.
>>>>>>
>>>>>> Your reasoning is all gobbledygook. Your comments reflect only
>>>>>> limitations in your thinking, not any essential truth about using
>>>>>> standard out for binary data.
>>>>>
>>>>> I must admit that it's nothing I have ever done or considered
>>>>> doing.
>>>>>
>>>>> [...]
>>>>
>>>> Simple example (disclaimer: not tested):
>>>>
>>>> ssh foo 'cd blah ; tar -cf - . | gzip -c' | \
>>>> (mkdir foo.blah ; cd foo.blah ; gunzip -c | tar -xf -)
>>>>
>>>> Of the five main programs in this command, four are using
>>>> standard out to send binary data:
>>>>
>>>> tar -cf - .
>>>> gzip -c
>>>> ssh foo [...]
>>>> gunzip -c
>>>>
>>>> The tar -xf - at the end reads binary data on standard in
>>>> but doesn't output any (or anything else for that matter).
>>>>
>>>> It is FAR more cumbersome to accomplish what this command
>>>> is doing without sending binary data through standard out.
>>>
>>> If I am not mistaken, tar, gzip and gunzip do not write binary data
>>> to standard output by default. They should be specifically told to
>>> do so. For ssh I don't know. Anyway, ssh is not a "normal" program
>>> so it's not surprising when textuality of ssh output is the same as
>>> textuality of the command it carries.
>>>
>>>> Anyone who doesn't understand this doesn't understand Unix.
>>>
>>> Frankly, Unix redirection racket looks like something hacked
>>> together rather than designed as result of the solid thinking
>>> process. As long as there were only standard input and output it
>>> was sort of logical. But when they figured out that it is
>>> insufficient, they had chosen a quick hack instead of constructing
>>> a solution that wouldn't offend engineering senses of any
>>> non-preconditioned observer.
>> It was designed for very memory constrained systems which handled
>> text on a line by line basis. So one line of a long file wuld be
>> processed and passed down the pipeline, and you wouldn't need
>> temporary disk files or large amounts of memory. I'm sure it worked
>> quite well for that.
>>
>>
>
> A concept of pipes is fine. I was not talking about that side.
>
> My objection is with each program having exactly 1 special input and
> exactly 2 special outputs. Instead of having, say, up to 5 of each,
> fully interchangeable with the first of the five being special only in
> that that it is a default and as such allows for shorter syntax in the
> shell.
>
> I would be surprised if something like that was not done by somebody.
> I would be even more surprised if idea did not cross the mind of Unix
> pioneers. However they decided to add stderr and to stop here. Most
> likely, because they didn't take themselves as seriously as few posters
> here take them 45-50 years later.
>
>
The BabyX resource compiler taes images, fonts, etc and outputs C
source. So it writes the source to standard outout to make it a bit
easier for scripts to integrate it. Whether anyone has actually done
that I don't know - always just redirect the iutout to a pipe and so
there's nor real advantage over using a filename.

However I recently modified the program to also output an associated
header. Now the ASCII way to do that is to send an ETX to separate the
outputs. That's never going work in an integration. So in fact I write
to a .h file which I open internally. And so there's now very little
point in having the main .c resuts on stnadard output.

--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: iso646.h

<e6uuN.273591$Wp_8.219866@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32121&group=comp.lang.c#32121

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <865xzaas3m.fsf@linuxsc.com> <20240131124332.00002c05@yahoo.com> <gDtuN.273514$Wp_8.83091@fx17.iad> <20240131174249.00006e06@yahoo.com>
Lines: 38
Message-ID: <e6uuN.273591$Wp_8.219866@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 31 Jan 2024 15:58:02 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 31 Jan 2024 15:58:02 GMT
X-Received-Bytes: 2618
 by: Scott Lurndal - Wed, 31 Jan 2024 15:58 UTC

Michael S <already5chosen@yahoo.com> writes:
>On Wed, 31 Jan 2024 15:25:00 GMT
>scott@slp53.sl.home (Scott Lurndal) wrote:

>> You mean like
>>
>> exec 3< /path/to/input/file
>> read -u3 line_from_input file
>>
>> How does that offend your engineering senses?
>>
>
>That was not in 2-3 books that I had read. I can't say that I understand
>what is going on, what environment we are and whether what you show is
>generic or specific to 'exec' and 'read'.

It is acutally specific to a shell which provides internal
'exec' and 'read' commands. There are dozens of shells available
to suit the end-users requirements (bourne shell, korn shell, C shell
et alia), many of them implement a common subset of commands
defined by POSIX.

From the unix kernel perspective, an application opens a file and a file
descriptor is assigned (consecutively, starting at zero). There
are no semantics associated with the fd which can refer to a terminal,
pseudo-terminal, block device, character device, pipe,
named fifo, or even a TCP connection to a remote host.

Any semantics associated with the file descriptor are a contract
between the shell and the application.

One could certainly write a shell that doesn't use file descriptor
zero as stdin (although that would be incompatable with applications
written for the standard shells, all of which honor the convention
that file descriptor zero is stdin).

For portability between shells, POSIX has codified the relationship
of stdin to fd 0, stdout to fd1, etc.

Re: iso646.h

<M6uuN.273609$Wp_8.126584@fx17.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32122&group=comp.lang.c#32122

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: iso646.h
Newsgroups: comp.lang.c
References: <uokhnk$eiln$1@dont-email.me> <up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <865xzaas3m.fsf@linuxsc.com> <upd0pj$1elmk$1@dont-email.me> <updl0s$1i2he$3@dont-email.me> <updopb$1iv0b$1@dont-email.me>
Lines: 19
Message-ID: <M6uuN.273609$Wp_8.126584@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 31 Jan 2024 15:58:36 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 31 Jan 2024 15:58:36 GMT
X-Received-Bytes: 1996
 by: Scott Lurndal - Wed, 31 Jan 2024 15:58 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>On 31.01.2024 15:21, David Brown wrote:
>> On 31/01/2024 09:36, Malcolm McLean wrote:
>>> [ I snipped a couple of "I actually don't know/need it" things ]
>>>
>>> But now it's effectively a programming language, and, from the example
>>> code, a very poorly designed one which is cryptic and fussy and liable
>>> to be hard to maintain. So it's better to use a language like Perl to
>>> achieve the same thing, and I did have a few Perl scripts handy for
>>> repetitive jobs of that nature in my Unix days.
>>
>> That gave me a laugh! You think bash is cryptic, fussy and poorly
>> designed, and choose /Perl/ as the alternative :-)
>
>I don't think it's that clear a joke. The Unix shell is extremely
>error prone to program, and you should not let a newbie write shell
>programs without careful supervision.

Nonsense.

Re: iso646.h

<updr1m$1jc55$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32123&group=comp.lang.c#32123

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 16:04:05 +0000
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <updr1m$1jc55$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com> <uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me> <up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me> <up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me> <up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <upd0pj$1elmk$1@dont-email.me>
<updl0s$1i2he$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jan 2024 16:04:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ae443434ff00458fcd5a7b294b8fafb1";
logging-data="1683621"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cCnEmFcEWTQlhGlEmOk4sXqszu92uGN8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:D3Tm7Zwm4kUnLIUwaZ6yZYFw/54=
In-Reply-To: <updl0s$1i2he$3@dont-email.me>
Content-Language: en-GB
 by: Malcolm McLean - Wed, 31 Jan 2024 16:04 UTC

On 31/01/2024 14:21, David Brown wrote:
> On 31/01/2024 09:36, Malcolm McLean wrote:
>>
>
> That gave me a laugh!  You think bash is cryptic, fussy and poorly
> designed, and choose /Perl/ as the alternative :-)
>

I'm not a great fan of Perl and if I was writing the language then it
would look a lot different to what it does now. But I wasn't the person
to implement it and, for various reasons, you have to use what is
standard (when I had the Unix system some other people in the lab were
doing their main work in Perl, because it had good bioinformatics
libraries, so of course that Perl a natural choice for little scripts
which otherwise would have been written in a shell language).

However the main advantage of Perl is that it was designed from the
start as a programming language in which programmers would write
human-readable, maintainable scripts. And you can write it reasonably
clearly with care, if you avoid some of the more idiomatic features.

--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: iso646.h

<20240131180429.000038bf@yahoo.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32124&group=comp.lang.c#32124

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: already5...@yahoo.com (Michael S)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 18:04:29 +0200
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <20240131180429.000038bf@yahoo.com>
References: <uokhnk$eiln$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com>
<20240131124332.00002c05@yahoo.com>
<upddks$1gkml$1@dont-email.me>
<20240131170312.00006f30@yahoo.com>
<WZtuN.273518$Wp_8.264429@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="dde7e6588c421492c1bae181782363df";
logging-data="1612964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BlXEs/J3MbtM3xZaleNiPqcJLWtihBz0="
Cancel-Lock: sha1:53AIznMHZYWpQuNl70Ju72UyQcY=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
 by: Michael S - Wed, 31 Jan 2024 16:04 UTC

On Wed, 31 Jan 2024 15:49:10 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:

> Michael S <already5chosen@yahoo.com> writes:
> >On Wed, 31 Jan 2024 12:15:23 +0000
> >Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:
>
> >> It was designed for very memory constrained systems which handled
> >> text on a line by line basis. So one line of a long file wuld be
> >> processed and passed down the pipeline, and you wouldn't need
> >> temporary disk files or large amounts of memory. I'm sure it worked
> >> quite well for that.
> >>
> >>
> >
> >A concept of pipes is fine. I was not talking about that side.
> >
> >My objection is with each program having exactly 1 special input and
> >exactly 2 special outputs. Instead of having, say, up to 5 of each,
> >fully interchangeable with the first of the five being special only
> >in that that it is a default and as such allows for shorter syntax
> >in the shell.
>
> Each program has 1024 (on my system - it's configurable on a
> per-process basis) fully interchangable "inputs" and "outputs" (also
> known as files).
>
> $ application 5> /tmp/file5
>
> will redirect file descriptor five to the specified file.
>
>
> There's nothing special about stdin, stdout or stderr other than
> that they are tags applied to the first three file descriptors.
>
> There is a convention the that the first file descriptor
> is used for input, the second for output and the third
> for diagnostic output. But it's just a convention

I don't understand.
Are not descriptors 0,1 and 2 special in that that they are already
open (I don't know if by OS or by shell) when the program starts and the
rest of them, if ever used, have to be opened by the program code?

On only remotely related note, what happens on your system when you
want more than 1024 files to be open by one program simultaneously?

Re: iso646.h

<updr44$1jcmu$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32125&group=comp.lang.c#32125

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 17:05:23 +0100
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <updr44$1jcmu$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <865xzaas3m.fsf@linuxsc.com>
<20240131124332.00002c05@yahoo.com> <gDtuN.273514$Wp_8.83091@fx17.iad>
<20240131174249.00006e06@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 31 Jan 2024 16:05:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="227020966060209617dd8106d62be005";
logging-data="1684190"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19p+Y1r+F5ZmA2n1756yRy0"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:PAIBHc34bZs+738f/tUjvVOUSlY=
In-Reply-To: <20240131174249.00006e06@yahoo.com>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Wed, 31 Jan 2024 16:05 UTC

On 31.01.2024 16:42, Michael S wrote:
> On Wed, 31 Jan 2024 15:25:00 GMT
> scott@slp53.sl.home (Scott Lurndal) wrote:
>>
>> You mean like
>>
>> exec 3< /path/to/input/file
>> read -u3 line_from_input file
>>
>> How does that offend your engineering senses?
>
> That was not in 2-3 books that I had read. I can't say that I understand
> what is going on, what environment we are and whether what you show is
> generic or specific to 'exec' and 'read'.

'-u' is obviously an option of read. Various shells support it; at least
ksh since 30 years, and bash meanwhile as well. But it's not in POSIX.

Other redirections are standard, and these should certainly be known by
anyone who had visited a course and read any book on the Unix shell.
The syntax is not difficult, follows rules, and certainly not arbitrary.

The one in above code is assigning the file descriptor 3 to the given
file for reading. You can let a FD point to the channel another one is
pointing to, like in the "well known" '2>&1' (where stderr is connected
to the same channel than stdin currently points to). Similar you can in
above example use the standard form 'read line_from_input_file <&3',
which may certainly appear more cryptic than an option '-u3', but it's
essential to any shell programmer.

Janis

Re: iso646.h

<updrr8$1jglq$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32126&group=comp.lang.c#32126

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 17:17:44 +0100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <updrr8$1jglq$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com> <up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me> <up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me> <up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com> <upd0pj$1elmk$1@dont-email.me>
<updl0s$1i2he$3@dont-email.me> <updopb$1iv0b$1@dont-email.me>
<M6uuN.273609$Wp_8.126584@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 31 Jan 2024 16:17:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="227020966060209617dd8106d62be005";
logging-data="1688250"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ObYuwJwmcKIE3UoWznuhi"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:05bfrYU+8J30CSBUO6dyXsAkA6o=
In-Reply-To: <M6uuN.273609$Wp_8.126584@fx17.iad>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Wed, 31 Jan 2024 16:17 UTC

On 31.01.2024 16:58, Scott Lurndal wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>> On 31.01.2024 15:21, David Brown wrote:
>>> On 31/01/2024 09:36, Malcolm McLean wrote:
>>>> [ I snipped a couple of "I actually don't know/need it" things ]
>>>>
>>>> But now it's effectively a programming language, and, from the example
>>>> code, a very poorly designed one which is cryptic and fussy and liable
>>>> to be hard to maintain. So it's better to use a language like Perl to
>>>> achieve the same thing, and I did have a few Perl scripts handy for
>>>> repetitive jobs of that nature in my Unix days.
>>>
>>> That gave me a laugh! You think bash is cryptic, fussy and poorly
>>> designed, and choose /Perl/ as the alternative :-)
>>
>> I don't think it's that clear a joke. The Unix shell is extremely
>> error prone to program, and you should not let a newbie write shell
>> programs without careful supervision.
>
> Nonsense.

Not the least. - I'm not sure about your background in shell. But all
what you wrote in this newsgroup is indicating that your experience
seems to be quite limited. (I've seen only a single and pointless post
from you in comp.unix.shell). - Nevermind. Just don't expose yourself
so much with your obviously little knowledge and experience.

Janis

Re: iso646.h

<20240131181820.00007acc@yahoo.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32127&group=comp.lang.c#32127

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: already5...@yahoo.com (Michael S)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 18:18:20 +0200
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <20240131181820.00007acc@yahoo.com>
References: <uokhnk$eiln$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com>
<20240131124332.00002c05@yahoo.com>
<gDtuN.273514$Wp_8.83091@fx17.iad>
<20240131174249.00006e06@yahoo.com>
<updr44$1jcmu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="dde7e6588c421492c1bae181782363df";
logging-data="1612964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/U6HBsB3HDQNTnYdKP+V3FTj8bakexi6U="
Cancel-Lock: sha1:S6F4ZqLlgrZeiUSQ7zSSrsKHHIg=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
 by: Michael S - Wed, 31 Jan 2024 16:18 UTC

On Wed, 31 Jan 2024 17:05:23 +0100
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:

> On 31.01.2024 16:42, Michael S wrote:
> > On Wed, 31 Jan 2024 15:25:00 GMT
> > scott@slp53.sl.home (Scott Lurndal) wrote:
> >>
> >> You mean like
> >>
> >> exec 3< /path/to/input/file
> >> read -u3 line_from_input file
> >>
> >> How does that offend your engineering senses?
> >
> > That was not in 2-3 books that I had read. I can't say that I
> > understand what is going on, what environment we are and whether
> > what you show is generic or specific to 'exec' and 'read'.
>
> '-u' is obviously an option of read. Various shells support it; at
> least ksh since 30 years, and bash meanwhile as well. But it's not in
> POSIX.
>

The books were talking about Bourne shell and C shell. They acknowledged
an existence of ksh, but didn't go into details. I don't remember if
bash was mentioned at all.
Of course, in practice in this century I used bash almost exclusively,
but never learned it formally, by book, from start to finish.
The same as over 90% of bash users, I'd guess.

> Other redirections are standard, and these should certainly be known
> by anyone who had visited a course and read any book on the Unix
> shell. The syntax is not difficult, follows rules, and certainly not
> arbitrary.
>
> The one in above code is assigning the file descriptor 3 to the given
> file for reading. You can let a FD point to the channel another one is
> pointing to, like in the "well known" '2>&1' (where stderr is
> connected to the same channel than stdin currently points to).
> Similar you can in above example use the standard form 'read
> line_from_input_file <&3', which may certainly appear more cryptic
> than an option '-u3', but it's essential to any shell programmer.
>
> Janis
>

I did understand '3<' by association with '2>' that was in the book,
but more importantly, is something I use regularly.
However I had never seen '3<' in the books.

Re: iso646.h

<upds05$1jcte$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32128&group=comp.lang.c#32128

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 11:20:21 -0500
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <upds05$1jcte$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me> <87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me> <up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me> <up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me> <86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me> <U98uN.131477$q3F7.52171@fx45.iad>
<upb4ng$11pmg$1@dont-email.me> <iZ8uN.374647$p%Mb.202743@fx15.iad>
<87cyti61o4.fsf@nosuchdomain.example.com> <upcnq4$1db7v$3@dont-email.me>
<updbo9$1ga92$1@dont-email.me> <20240131135802.00001bf6@yahoo.com>
<upder4$1gqso$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 31 Jan 2024 16:20:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="61317d105468f2685b8046729c0a6a6e";
logging-data="1684398"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RaJzCw0YWEhy8IIUdLJuSSbsgXBx2HAE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9zAzOT1fVB42Jhoc5VJL5Kd/Rk8=
Content-Language: en-US
In-Reply-To: <upder4$1gqso$1@dont-email.me>
 by: James Kuyper - Wed, 31 Jan 2024 16:20 UTC

On 1/31/24 07:35, Janis Papanagnou wrote:
....
> I associate DEC's VMS with the old DEC VAX-11 system, both
> from around the mid of the 1970's. I programmed on a DEC's
> VAX with VMS obviously before Linus Torvalds started his
> studies. And that was at a time when the DEC VAX and VMS
> were replaced at our sites by Unix systems.

OK - so it's that association you've got wrong. I know VMS was still
going strong around 1990 when I was introduced to it. It might have been
in decline at the time, but it was very far from being gone.

Re: iso646.h

<20240131182636.00003173@yahoo.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32129&group=comp.lang.c#32129

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: already5...@yahoo.com (Michael S)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 18:26:36 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <20240131182636.00003173@yahoo.com>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com>
<uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me>
<up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me>
<up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com>
<upd0pj$1elmk$1@dont-email.me>
<updl0s$1i2he$3@dont-email.me>
<updopb$1iv0b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="dde7e6588c421492c1bae181782363df";
logging-data="1612964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wxyJ4gr7iqyKB5WKi6Aetl3Xfrtx3iDA="
Cancel-Lock: sha1:RD/4TqhfZSE8876h6YvykELKGBo=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
 by: Michael S - Wed, 31 Jan 2024 16:26 UTC

On Wed, 31 Jan 2024 16:25:30 +0100
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:

>
> The big advantage of non-GUI is for process automation. With GUI
> oriented applications you can mainly only interactively (=slow and
> cumbersome) do what it provides. Rarely GUI applications support a
> scripting interface, and if so it's then typically some proprietary
> non-standard language.
>

I'd take almost any proprietary non-standard GUI macro language over
non-proprietary non-standard tcl. They say, Lua is better. I never had
motivation to look at it more closely.

Re: iso646.h

<20240131182746.00000dbc@yahoo.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=32130&group=comp.lang.c#32130

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: already5...@yahoo.com (Michael S)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Wed, 31 Jan 2024 18:27:46 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <20240131182746.00000dbc@yahoo.com>
References: <uokhnk$eiln$1@dont-email.me>
<87frym7l3p.fsf@nosuchdomain.example.com>
<uot08a$278i2$1@dont-email.me>
<uotmed$2ack6$2@dont-email.me>
<up17f9$313qt$4@dont-email.me>
<up197h$31jct$1@dont-email.me>
<up1t0r$37v5a$4@dont-email.me>
<up2mor$3bjgb$1@dont-email.me>
<up2ogd$3bs86$1@dont-email.me>
<up3r9c$3hbk7$10@dont-email.me>
<up47gj$3jfg4$1@dont-email.me>
<87jznu1c4v.fsf@nosuchdomain.example.com>
<up4ceh$3k4b8$1@dont-email.me>
<up5fk6$3t99q$6@dont-email.me>
<up5u8c$blo$1@dont-email.me>
<up6655$1l8b$2@dont-email.me>
<up6b3v$2ff9$1@dont-email.me>
<86zfwnc34o.fsf@linuxsc.com>
<up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com>
<upaej6$u5ag$1@dont-email.me>
<865xzaas3m.fsf@linuxsc.com>
<upd0pj$1elmk$1@dont-email.me>
<updl0s$1i2he$3@dont-email.me>
<updopb$1iv0b$1@dont-email.me>
<20240131182636.00003173@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="dde7e6588c421492c1bae181782363df";
logging-data="1612964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZHZdTKlhzcFEA843PXG9154oswnoXsXA="
Cancel-Lock: sha1:zxScYgDsW0Q3rfba/bxylTxCeEE=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
 by: Michael S - Wed, 31 Jan 2024 16:27 UTC

On Wed, 31 Jan 2024 18:26:36 +0200
Michael S <already5chosen@yahoo.com> wrote:

> On Wed, 31 Jan 2024 16:25:30 +0100
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
>
> >
> > The big advantage of non-GUI is for process automation. With GUI
> > oriented applications you can mainly only interactively (=slow and
> > cumbersome) do what it provides. Rarely GUI applications support a
> > scripting interface, and if so it's then typically some proprietary
> > non-standard language.
> >
>
> I'd take almost any proprietary non-standard GUI macro language over
> non-proprietary non-standard tcl. They say, Lua is better. I never had
> motivation to look at it more closely.
>

meant to write 'non-proprietary standard tcl'


devel / comp.lang.c / iso646.h

Pages:1234567891011121314151617181920212223242526
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor