Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Today is a good day for information-gathering. Read someone else's mail file.


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

<20240201114540.189@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 19:50:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <20240201114540.189@kylheku.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>
<87v879qdmc.fsf@bsb.me.uk> <upetj9$1p0ag$1@dont-email.me>
<upgbd6$23tto$2@dont-email.me> <upge2t$24gnk$1@dont-email.me>
<upgg36$24rs7$1@dont-email.me> <LoSuN.420648$83n7.151350@fx18.iad>
Injection-Date: Thu, 1 Feb 2024 19:50:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5a0ac715860476fe0387f500eaa77814";
logging-data="2329037"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pxrdA+JlYbITmxgRC2vLGb6VOihyMl4Q="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:21NVISpOeqwSS+x9t3fIUeJZdFI=
 by: Kaz Kylheku - Thu, 1 Feb 2024 19:50 UTC

On 2024-02-01, Scott Lurndal <scott@slp53.sl.home> wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>>On 01.02.2024 16:41, Malcolm McLean wrote:
>>>
>>> So could you list one or two reasons why you might prefer a program with
>>> five subroutines, and one or two reasons why you might prefer to write
>>> five programs which communicate via piped data?
>>
>>A quite appealing and naturally appearing task (from the past) to use
>>pipes was to model communication cascades. Something like (off the top
>>of my head)...
>>
>> data-source | sign | compress | crc | encrypt | channel-enc |
>> interleaver | channel-simulator | deinterleaver | channel-dec |
>> decrypt | crc-check | uncompress | check-sign | data-sink
>>
>>Component-pairs can be omitted, say you may leave out the un-/compress
>>function. And every component may be either special purpose or general.
>>A special purpose entity could be BCH-enc and RCPC-enc, or it can also
>>be (if better suited) a combined module, say 'crc -16' vs. 'crc -32'
>>with the function realized as option argument.
>
> There was also the widely used netpbm package for translating
> between different image formats.
>
> https://en.wikipedia.org/wiki/Netpbm
>
> $ giftopnm somepic.gif | ppmtobmp > somepic.bmp
> $ for i in *.png; do pngtopam $i | ppmtojpeg >`basename $i .png`.jpg; done

Also, in regard to some silly objections upthread about the danger of
binary data on standard ouptut, programs in Unix can easily do the
Following (and arguably should):

if (isatty(STDOUT_FILENO)) {
fprintf(stderr, "Cowardly refusing to dump binary data to a terminal.\n");
exit(EXIT_FAILURE);
}

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: iso646.h

<upgtff$2764a$1@dont-email.me>

  copy mid

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

  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: richard....@gmail.invalid (Richard Harnden)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 20:03:59 +0000
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <upgtff$2764a$1@dont-email.me>
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>
<87v879qdmc.fsf@bsb.me.uk> <upetj9$1p0ag$1@dont-email.me>
<upgbd6$23tto$2@dont-email.me> <upge2t$24gnk$1@dont-email.me>
<upgg36$24rs7$1@dont-email.me> <LoSuN.420648$83n7.151350@fx18.iad>
<20240201114540.189@kylheku.com>
Reply-To: nospam.harnden@invalid.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 1 Feb 2024 20:03:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4fcd13efb41fee43b26b7e605da3ece7";
logging-data="2332810"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19j4TJ+xTF4sFiP8aVPW9IyegOBY+s04D4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:yS6eB10F8jslZ1wu6jR9l/KtbSc=
In-Reply-To: <20240201114540.189@kylheku.com>
Content-Language: en-GB
 by: Richard Harnden - Thu, 1 Feb 2024 20:03 UTC

On 01/02/2024 19:50, Kaz Kylheku wrote:
> On 2024-02-01, Scott Lurndal <scott@slp53.sl.home> wrote:
>> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>>> On 01.02.2024 16:41, Malcolm McLean wrote:
>>>>
>>>> So could you list one or two reasons why you might prefer a program with
>>>> five subroutines, and one or two reasons why you might prefer to write
>>>> five programs which communicate via piped data?
>>>
>>> A quite appealing and naturally appearing task (from the past) to use
>>> pipes was to model communication cascades. Something like (off the top
>>> of my head)...
>>>
>>> data-source | sign | compress | crc | encrypt | channel-enc |
>>> interleaver | channel-simulator | deinterleaver | channel-dec |
>>> decrypt | crc-check | uncompress | check-sign | data-sink
>>>
>>> Component-pairs can be omitted, say you may leave out the un-/compress
>>> function. And every component may be either special purpose or general.
>>> A special purpose entity could be BCH-enc and RCPC-enc, or it can also
>>> be (if better suited) a combined module, say 'crc -16' vs. 'crc -32'
>>> with the function realized as option argument.
>>
>> There was also the widely used netpbm package for translating
>> between different image formats.
>>
>> https://en.wikipedia.org/wiki/Netpbm
>>
>> $ giftopnm somepic.gif | ppmtobmp > somepic.bmp
>> $ for i in *.png; do pngtopam $i | ppmtojpeg >`basename $i .png`.jpg; done
>
> Also, in regard to some silly objections upthread about the danger of
> binary data on standard ouptut, programs in Unix can easily do the
> Following (and arguably should):
>
> if (isatty(STDOUT_FILENO)) {
> fprintf(stderr, "Cowardly refusing to dump binary data to a terminal.\n");
> exit(EXIT_FAILURE);
> }
>

Yes, so common that the shell has test -t

Re: iso646.h

<878r44q73s.fsf@nosuchdomain.example.com>

  copy mid

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

  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: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 01 Feb 2024 12:09:43 -0800
Organization: None to speak of
Lines: 37
Message-ID: <878r44q73s.fsf@nosuchdomain.example.com>
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>
<87v879qdmc.fsf@bsb.me.uk> <upf9ug$1uf0j$1@dont-email.me>
<upg4ol$22tss$1@dont-email.me> <upg65m$235lp$1@dont-email.me>
<upgc4f$2454d$1@dont-email.me> <upgekv$24gnk$2@dont-email.me>
<JGPuN.297652$PuZ9.135961@fx11.iad> <upgmdd$2605r$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="637459c0b3f26f70a97e9a2f25534b92";
logging-data="2329865"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dRop9mgXGs4wCxeFnFQuU"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:j6Mue41izODaqVjrNca2VMa9qRU=
sha1:YU9AyJEMXbqsm7hCH4rWx9lahHw=
 by: Keith Thompson - Thu, 1 Feb 2024 20:09 UTC

bart <bc@freeuk.com> writes:
> On 01/02/2024 16:30, Scott Lurndal wrote:
[...]
>> $ if file /tmp/garage.jpg | grep JPEG > /dev/null^Jthen^Jecho "it is a jpeg"^Jfi
>> it is a jpeg
>
> That doesn't work for me:

Not if you type the "^J"s as '^' and 'J'. They were intended to
represent newlines. I would use semicolons instead:

$ if file /tmp/garage.jpg | grep JPEG > /dev/null ; then echo "it is a jpeg" ; fi
it is a jpeg

(I might also use "grep -q" rather than redirecting to /dev/null.)

[...]

> I think anyway that you need to grep for JFIF not JPEG, but that is a
> really poor way to check for a JPEG file. Any text or binary file can
> have a JFIF byte sequence.

That's not an issue. "file" doesn't just look for "JFIF" to determine
that a file is a jpg.

Try running the "file" command on a jpg file. Its output includes both
"JPEG" and "JFIF". Try running it on a text file containing the string
"JFIF".

The output of "file" is primarily meant to be human-readable, so
processing it automatically can be tricky, but it's usually doable --
and it also has a "--mime" option if you want more specificity.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: iso646.h

<874jesq6p7.fsf@nosuchdomain.example.com>

  copy mid

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

  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: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 01 Feb 2024 12:18:28 -0800
Organization: None to speak of
Lines: 16
Message-ID: <874jesq6p7.fsf@nosuchdomain.example.com>
References: <uokhnk$eiln$1@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> <86jzno9v19.fsf@linuxsc.com>
<upgc3u$23u8i$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="637459c0b3f26f70a97e9a2f25534b92";
logging-data="2329865"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19O5gFuvX6TbiaEwfVdBA09"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:HAhXzdJ4C78W6Ulh0CuVO3DWol0=
sha1:F8q7aMDsOkH/c9N7WBlC7xYJvGg=
 by: Keith Thompson - Thu, 1 Feb 2024 20:18 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
[...]
> Some things are interesting in themselves and worth talking about at
> lenght. Like how Haskell builds up functions of functions. Other
> things really aren't. And how to set up a Unix pipeline is one of
> those that really aren't (unless actually faced with a such a system
> and with a practical need to do it).

That's your opinion. You seem to be expecting others to find it correct
and intuitively obvious if they'd only *think* about it. You're wrong.
You won't change your mind.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: iso646.h

<87zfwkorwp.fsf@nosuchdomain.example.com>

  copy mid

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

  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: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 01 Feb 2024 12:23:18 -0800
Organization: None to speak of
Lines: 17
Message-ID: <87zfwkorwp.fsf@nosuchdomain.example.com>
References: <uokhnk$eiln$1@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> <87v879qdmc.fsf@bsb.me.uk>
<upeo6c$1oa6o$1@dont-email.me> <upga71$23qjh$1@dont-email.me>
<upgdic$24dp0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="637459c0b3f26f70a97e9a2f25534b92";
logging-data="2329865"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1yjsHIbumS6TXhejA8fHc"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:+sZSgC5WWhcJqDWeHs0z9Hv5KQc=
sha1:45qz64TLyvh8f/QB+oQk2yO94hk=
 by: Keith Thompson - Thu, 1 Feb 2024 20:23 UTC

bart <bc@freeuk.com> writes:
[...]
> I've just realised why it is that your filter programs don't show
> prompts or any kinds of messages: because those are sent to stdout,
> and therefore will screw up any data that is being sent there as the
> primary output.

Yes! (But your use of "your" is odd. Nobody here owns those programs.)

> THAT'S why sending what ought to be packaged data to stdout is Wrong.

No.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: iso646.h

<CCTuN.104492$JLvf.67793@fx44.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx44.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> <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> <87v879qdmc.fsf@bsb.me.uk> <upf9ug$1uf0j$1@dont-email.me> <upg4ol$22tss$1@dont-email.me> <upg65m$235lp$1@dont-email.me> <upgc4f$2454d$1@dont-email.me> <upgekv$24gnk$2@dont-email.me> <JGPuN.297652$PuZ9.135961@fx11.iad> <upgmdd$2605r$1@dont-email.me> <878r44q73s.fsf@nosuchdomain.example.com>
Lines: 15
Message-ID: <CCTuN.104492$JLvf.67793@fx44.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 01 Feb 2024 20:59:14 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 01 Feb 2024 20:59:14 GMT
X-Received-Bytes: 1586
 by: Scott Lurndal - Thu, 1 Feb 2024 20:59 UTC

Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>bart <bc@freeuk.com> writes:
>> On 01/02/2024 16:30, Scott Lurndal wrote:
>[...]
>>> $ if file /tmp/garage.jpg | grep JPEG > /dev/null^Jthen^Jecho "it is a jpeg"^Jfi
>>> it is a jpeg
>>
>> That doesn't work for me:
>
>Not if you type the "^J"s as '^' and 'J'. They were intended to
>represent newlines. I would use semicolons instead:

Yes, that's an artifact of ksh history entries for multiline commands.

I should have edited it before posting.

Re: iso646.h

<uph28d$27u2h$1@dont-email.me>

  copy mid

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

  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: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 21:25:33 +0000
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <uph28d$27u2h$1@dont-email.me>
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>
<87v879qdmc.fsf@bsb.me.uk> <upf9ug$1uf0j$1@dont-email.me>
<upg4ol$22tss$1@dont-email.me> <upg65m$235lp$1@dont-email.me>
<upgc4f$2454d$1@dont-email.me> <upgekv$24gnk$2@dont-email.me>
<JGPuN.297652$PuZ9.135961@fx11.iad> <upgmdd$2605r$1@dont-email.me>
<878r44q73s.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 1 Feb 2024 21:25:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="19d35866713dfba03207e755d1c79dd1";
logging-data="2357329"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+qrDsDlqt//9y5OA1x7s3DbaJeiRWrUqw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:4yu1uJtw3VSRvRf5fc0yj65mf9g=
In-Reply-To: <878r44q73s.fsf@nosuchdomain.example.com>
Content-Language: en-GB
 by: bart - Thu, 1 Feb 2024 21:25 UTC

On 01/02/2024 20:09, Keith Thompson wrote:
> bart <bc@freeuk.com> writes:
>> On 01/02/2024 16:30, Scott Lurndal wrote:
> [...]
>>> $ if file /tmp/garage.jpg | grep JPEG > /dev/null^Jthen^Jecho "it is a jpeg"^Jfi
>>> it is a jpeg
>>
>> That doesn't work for me:
>
> Not if you type the "^J"s as '^' and 'J'. They were intended to
> represent newlines. I would use semicolons instead:
>
> $ if file /tmp/garage.jpg | grep JPEG > /dev/null ; then echo "it is a jpeg" ; fi
> it is a jpeg
>
> (I might also use "grep -q" rather than redirecting to /dev/null.)
>
> [...]
>
>> I think anyway that you need to grep for JFIF not JPEG, but that is a
>> really poor way to check for a JPEG file. Any text or binary file can
>> have a JFIF byte sequence.
>
> That's not an issue. "file" doesn't just look for "JFIF" to determine
> that a file is a jpg.

I see, so 'file' is a special command that does all the work. grep
checks whether the description contains JPEG. Although it won't work for
any of my private formats.

Re: iso646.h

<uph2ol$285r5$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 13:34:13 -0800
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <uph2ol$285r5$1@dont-email.me>
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>
<87v879qdmc.fsf@bsb.me.uk> <upf9ug$1uf0j$1@dont-email.me>
<upg4ol$22tss$1@dont-email.me> <upg65m$235lp$1@dont-email.me>
<upgc4f$2454d$1@dont-email.me> <upgekv$24gnk$2@dont-email.me>
<JGPuN.297652$PuZ9.135961@fx11.iad> <upgmdd$2605r$1@dont-email.me>
<878r44q73s.fsf@nosuchdomain.example.com> <uph28d$27u2h$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 1 Feb 2024 21:34:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e5db24bf58349e0f24b4ca76196085dd";
logging-data="2365285"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18uOLAYFIeeuJ5bufCpdD3OlgdgAidNUo0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BqGMj7/z2KDetmmkVFkh2I0ZkZA=
In-Reply-To: <uph28d$27u2h$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 1 Feb 2024 21:34 UTC

On 2/1/2024 1:25 PM, bart wrote:
> On 01/02/2024 20:09, Keith Thompson wrote:
>> bart <bc@freeuk.com> writes:
>>> On 01/02/2024 16:30, Scott Lurndal wrote:
>> [...]
>>>> $ if file /tmp/garage.jpg | grep JPEG > /dev/null^Jthen^Jecho "it is
>>>> a jpeg"^Jfi
>>>> it is a jpeg
>>>
>>> That doesn't work for me:
>>
>> Not if you type the "^J"s as '^' and 'J'.  They were intended to
>> represent newlines.  I would use semicolons instead:
>>
>>      $ if file /tmp/garage.jpg | grep JPEG > /dev/null ; then echo "it
>> is a jpeg" ; fi
>>      it is a jpeg
>>
>> (I might also use "grep -q" rather than redirecting to /dev/null.)
>>
>> [...]
>>
>>> I think anyway that you need to grep for JFIF not JPEG, but that is a
>>> really poor way to check for a JPEG file. Any text or binary file can
>>> have a JFIF byte sequence.
>>
>> That's not an issue.  "file" doesn't just look for "JFIF" to determine
>> that a file is a jpg.
>
> I see, so 'file' is a special command that does all the work. grep
> checks whether the description contains JPEG. Although it won't work for
> any of my private formats.
>
>

Why would it work with your private formats? ;^)

Re: iso646.h

<uph35h$2869n$1@dont-email.me>

  copy mid

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

  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: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 22:41:05 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <uph35h$2869n$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>
<up8j5h$h743$3@dont-email.me> <up8rsj$it3f$1@dont-email.me>
<87sf2f6eip.fsf@nosuchdomain.example.com> <upbf5t$13jss$1@dont-email.me>
<874jeu60wu.fsf@nosuchdomain.example.com> <upbo9p$1573c$1@dont-email.me>
<updgja$1h4ft$1@dont-email.me> <updia8$1hdgc$1@dont-email.me>
<upfrt1$215au$1@dont-email.me> <upgkp5$25mvh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 1 Feb 2024 21:41:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fec5a488f4a3c468717d7ef6da7a5412";
logging-data="2365751"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Qs3k/UwTmQL/ONyMv7tTh1KxZG2Ui1Tk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:uJHgpOcDIK7gFPIwrVwFCAtPXAM=
Content-Language: en-GB
In-Reply-To: <upgkp5$25mvh$1@dont-email.me>
 by: David Brown - Thu, 1 Feb 2024 21:41 UTC

On 01/02/2024 18:35, Janis Papanagnou wrote:
> On 01.02.2024 11:30, David Brown wrote:
>> On 31/01/2024 14:35, Janis Papanagnou wrote:
>>>
>>> First; the EU publishes in all languages of the member states,
>>> for example. (There's no single lingua franca.)
>>
>> Weirdly, while Norway is not in the EU but Sweden and Denmark are, they
>> publish (for some things at least) in Norwegian but not in Swedish or
>> Danish. [...]
>
> Hmm.. - in my ears this sounds strange. I've looked it up and found...
>
> "The EU has 24 official languages:
>
> Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish,
> French, German, Greek, Hungarian, Irish, Italian, Latvian, Lithuanian,
> Maltese, Polish, Portuguese, Romanian, Slovak, Slovenian, Spanish and
> Swedish."

I can't say I have looked this up myself, or particularly care what
languages are used there. Maybe it only applied to some documents, or
used to apply but no longer does. Maybe some things don't stick rigidly
to the official languages, or maybe different guidelines are used for
internal documents.

Re: iso646.h

<uph3f8$2869n$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 22:46:16 +0100
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <uph3f8$2869n$2@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>
<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> <updmg5$1ihsr$1@dont-email.me>
<upe2gp$1kjiu$2@dont-email.me> <87plxhs647.fsf@nosuchdomain.example.com>
<upfs3e$215au$2@dont-email.me> <upggkm$24umt$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 1 Feb 2024 21:46:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fec5a488f4a3c468717d7ef6da7a5412";
logging-data="2365751"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18diTN/g2jDn3aN8LK3dlG1uuSfzR9OrEA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:yp7SGP0sfEXkDh1fsfpCtYGpiW0=
Content-Language: en-GB
In-Reply-To: <upggkm$24umt$1@dont-email.me>
 by: David Brown - Thu, 1 Feb 2024 21:46 UTC

On 01/02/2024 17:24, Janis Papanagnou wrote:
> On 01.02.2024 11:34, David Brown wrote:
>> On 31/01/2024 19:35, Keith Thompson wrote:
>>> David Brown <david.brown@hesbynett.no> writes:
>>>>
>>>> I regularly see it as more symmetrical and clearer to push data left
>>>> to right. So I might write "cat infile | grep foo | sort > outfile".
>>>> Of course I could use "<" redirection, but somehow it seems more
>>>> natural to me to have this flow. I'll use "<" for simpler cases.
>>>>
>>>> But perhaps this is just my habit, and makes little sense to other
>>>> people.
>
> I completely understand that.
>
>>>
>>> You can also use:
>>>
>>> < infile grep foo | sort > outfile
>>>
>>> Redirections don't have to be written after a command.
>
> Indeed. And if we also respect that 'grep' accepts arguments,
> then it's even more compact and yet probably better legible... :-)
>
> grep foo infile | sort > outfile
>
>
>> I did not know you could write it that way - thanks for another
>> off-topic, but useful, tip.
>
> Yes. We certainly should instead have written
>
> grep foo iso646.h | sort > outfile
>
>

I'm happy using different arrangements at different times. Sometimes I
think one way is clearer, or easier to type, sometimes I think another
way is better. As a vague rule, I will usually use "grep foo infile" if
it is stand alone, or at most piped into "less". If I have a larger
chain, it seems more natural to me to move the data left to right in a pipe.

I'm sure I cost my computer a few microseconds of extra effort, but I
don't worry too much about that!

Re: iso646.h

<uph4da$28ebd$1@dont-email.me>

  copy mid

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

  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: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 23:02:17 +0100
Organization: A noiseless patient Spider
Lines: 136
Message-ID: <uph4da$28ebd$1@dont-email.me>
References: <uokhnk$eiln$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>
<87v879qdmc.fsf@bsb.me.uk> <upeo6c$1oa6o$1@dont-email.me>
<HSBuN.86399$m4d.19963@fx43.iad> <upes68$1oqhv$1@dont-email.me>
<upgb44$23tto$1@dont-email.me> <upgj2i$25d37$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 1 Feb 2024 22:02:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fec5a488f4a3c468717d7ef6da7a5412";
logging-data="2373997"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+iTXUTwfTGrYXsFF6Cr/RqOgTeePHBHP8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8E4PQsYqp/w+bNQ/80fSIIIrdLQ=
In-Reply-To: <upgj2i$25d37$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Thu, 1 Feb 2024 22:02 UTC

On 01/02/2024 18:06, bart wrote:
> On 01/02/2024 14:50, David Brown wrote:
>> On 01/02/2024 02:29, bart wrote:
>>> On 01/02/2024 00:47, Scott Lurndal wrote:
>>>> bart <bc@freeuk.com> writes:
>>>>> On 31/01/2024 23:36, Ben Bacarisse wrote:
>>>>>> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
>>>>
>>>>>> According to you, these tools are poorly designed.  I don't think so.
>>>>>> How would you design them?  Endless input and output file names to be
>>>>>> juggled and tidied up afterwards?
>>>>>
>>>>> I think they're poorly designed too.
>>>>
>>>> Of course you do.   They're not bart programs.
>>>>
>>>>>
>>>>>  From the POV of interactive console programs, they /are/ poor.
>>>>
>>>> You don't provide any reason why - do elucidate!
>>>
>>> They only do one thing, like you can't first do A, then B. They don't
>>> give any prompts. They often apparently do nothing (so you can't tell
>>> if they're busy, waiting for input, or hanging). There is no dialog.
>>
>> That's the whole point!
>>
>> If you want to do A, then B, then you do "A | B", or "A; B", or "A &&
>> B" or "A || B".  And if you want to do A, then B twice, then C, then A
>> again, you write "A | B | B | C | A".  Other operator choices let you
>> say "do this then that", or "do this, and if successful do that", etc.
>>
>> Your monolithic AB program fails when you want to do C, or want to do
>> A and B in a way the AB author didn't envisage.
>>
>> You have a Transformer - a toy that can be either a car or a robot.
>> I've got a box of Lego.  Sometimes I need instructions and a bit of
>> time, but I can have a car, a robot, a plane, an alien, a house, and
>> anything else I might want.
>
>
> You can only do one thing, as you can only have one unbroken byte
> sequence as output sent to stdout.

I can do one sequence of many things.

Your suggested "clipboard" idea was no different.

But it's not difficult to have intermediary files if you want to do more
complicated things.

>
> You can't send output A to stdout, then B to stdout, and certainly can't
> interleave messages to the console on stdout, as that would then be all
> mixed up with the possibly binary data, and if redirected, you won't see
> it.

$ cat A
one
two
three

$ cat B

cat
dog
cow

$ (cat A; cat B) | wc -l
6

That's the output of two commands, "cat A" and "cat B", each going to
their stdout, and they are concatenated into a single pipe going to the
"wc -l" command to count the lines.

And if I wanted to redirect them to a file "x" and also view them, I'd
write :

$ (cat A; cat B) | tee x
one
two
three
cat
dog
cow

$ wc -l x
6 x

I'm not sure we are getting anywhere with you trying to invent more and
more complex situations in an attempt to find something that can't be
done from a Linux bash shell.

>
> I can see the idea of having one permanently open channel, but call it
> stdbinout or stdpipeout. But you still won't be able to generate a
> sequence of distinct data blocks along that one channel because it is
> continuous.
>
> This why 'as' only ever produces one object file, even for multiple
> input source files.

"as" produces one object file, because that's what the program does. If
you want two object files, run it twice. In Unix systems, starting
programs and running lots of programs at a time is cheap. It's not a
system that requires monolithic programs in order to work efficiently.

>
> And explains why 'as' treats multiple .s input files as though they were
> all part of the same single source file: you can take one .s file, chop
> it up into multiple .s files, and submit them all to 'as' (keeping the
> right order).

It does that because that's what makes sense. If you want to assembly
multiple .s files into individual .o files, then you do that. If you
want to assemble them into a single .o file, then you do that. Your
choice. Having it generate multiple .o files for multiple .s inputs
would restrict that choice.

>
> It's a feature! It's also the whackiest assembler I've encountered, this
> century anyway. That fact that it's implemented as a crude filter with
> one input stream and one output streams helps explain it.
>
> Although it works differently from most such filters, because if its
> output is not piped, and not redirected, it is sent to a file (always
> called a.out). It's not quite crazy enough to send binary object file
> data to the termimal; I wonder why not?

You really are scraping the bottom of the barrel to try to justify your
irrational hatreds, aren't you? You put a lot of effort into
desperately trying to dislike programs that don't work exactly the way
your programs work. It's a very strange hobby you have.

Re: iso646.h

<uph4kp$28ebd$2@dont-email.me>

  copy mid

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

  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: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 23:06:17 +0100
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <uph4kp$28ebd$2@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>
<87v879qdmc.fsf@bsb.me.uk> <upetj9$1p0ag$1@dont-email.me>
<upgbd6$23tto$2@dont-email.me> <upge2t$24gnk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 1 Feb 2024 22:06:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fec5a488f4a3c468717d7ef6da7a5412";
logging-data="2373997"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BtaDPm51gTlZDiBive/VNN4haiw4IIBo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:H22quswD0Mgn3uwTDYn3lCPWraI=
In-Reply-To: <upge2t$24gnk$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Thu, 1 Feb 2024 22:06 UTC

On 01/02/2024 16:41, Malcolm McLean wrote:
> On 01/02/2024 14:55, David Brown wrote:
>> On 01/02/2024 02:53, Malcolm McLean wrote:
>>> On 31/01/2024 23:36, Ben Bacarisse wrote:
>>>>
>>>> An example where it's really useful not to care: I have a suite of
>>>> tools
>>>> for doing toy cryptanalysis.  Some apply various transformations and/or
>>>> filters to byte streams and others collect and output (on stderr)
>>>> various statistics.  Plugging them together in various pipelines is
>>>> very
>>>> handy when investigating an encrypted text.  The output is almost
>>>> always
>>>> "binary" in the sense that there would be not point in looking at on a
>>>> terminal.
>>>>
>>>> According to you, these tools are poorly designed.  I don't think so.
>>>> How would you design them?  Endless input and output file names to be
>>>> juggled and tidied up afterwards?
>>>>
>>> I'd write a monolithic program.
>>
>> It's very strange to me to see people that consider themselves
>> programmers talk about having multiple small functions to do specific
>> tasks and combining them into bigger functions to solve bigger
>> problems, yet are reduced to quivering jellies at the thought of
>> multiple small programs to do specific tasks that can be combined to
>> solve bigger tasks.
>>
>> Do you think the C standard library would be improved by a single
>> function "flubadub" that takes 20 parameters and can calculate
>> logarithms, print formatted text, allocate memory and write it all to
>> a file?
>>
> By breaking down the problem into several parts e.g. "collect
> statistical data, analyse statistics, form hypothesis, attempt
> decryption, check decrypt for plausible plaintext" we can usually attack
> it better. And you're right, there's not a fundamental difference
> between writing one program with five subroutines, or five programs
> which pass data to each other via pipelines.

That's not what I said. Try re-reading. I can't be bothered arguing
against yet another straw man.

> But that doesn't mean that decision must not be made, or that you can't
> give reasons for and against each option.
>
> So could you list one or two reasons why you might prefer a program with
> five subroutines, and one or two reasons why you might prefer to write
> five programs which communicate via piped data?

Re: iso646.h

<QSUuN.294603$7sbb.118523@fx16.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.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> <86zfwnc34o.fsf@linuxsc.com> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <87v879qdmc.fsf@bsb.me.uk> <upf9ug$1uf0j$1@dont-email.me> <upg4ol$22tss$1@dont-email.me> <upg65m$235lp$1@dont-email.me> <upgc4f$2454d$1@dont-email.me> <upgekv$24gnk$2@dont-email.me> <JGPuN.297652$PuZ9.135961@fx11.iad> <upgmdd$2605r$1@dont-email.me> <878r44q73s.fsf@nosuchdomain.example.com> <uph28d$27u2h$1@dont-email.me>
Lines: 37
Message-ID: <QSUuN.294603$7sbb.118523@fx16.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 01 Feb 2024 22:24:48 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 01 Feb 2024 22:24:48 GMT
X-Received-Bytes: 2257
 by: Scott Lurndal - Thu, 1 Feb 2024 22:24 UTC

bart <bc@freeuk.com> writes:
>On 01/02/2024 20:09, Keith Thompson wrote:
>> bart <bc@freeuk.com> writes:
>>> On 01/02/2024 16:30, Scott Lurndal wrote:
>> [...]
>>>> $ if file /tmp/garage.jpg | grep JPEG > /dev/null^Jthen^Jecho "it is a jpeg"^Jfi
>>>> it is a jpeg
>>>
>>> That doesn't work for me:
>>
>> Not if you type the "^J"s as '^' and 'J'. They were intended to
>> represent newlines. I would use semicolons instead:
>>
>> $ if file /tmp/garage.jpg | grep JPEG > /dev/null ; then echo "it is a jpeg" ; fi
>> it is a jpeg
>>
>> (I might also use "grep -q" rather than redirecting to /dev/null.)
>>
>> [...]
>>
>>> I think anyway that you need to grep for JFIF not JPEG, but that is a
>>> really poor way to check for a JPEG file. Any text or binary file can
>>> have a JFIF byte sequence.
>>
>> That's not an issue. "file" doesn't just look for "JFIF" to determine
>> that a file is a jpg.
>
>I see, so 'file' is a special command that does all the work. grep
>checks whether the description contains JPEG. Although it won't work for
>any of my private formats.

Like anything in unix, the 'file(1)' command is flexible.

There is a file /etc/magic, that an installation can use
to describe custom file formats.

Re: iso646.h

<iTUuN.294604$7sbb.120734@fx16.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.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> <up97vr$l025$1@dont-email.me> <86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me> <87v879qdmc.fsf@bsb.me.uk> <upf9ug$1uf0j$1@dont-email.me> <upg4ol$22tss$1@dont-email.me> <upg65m$235lp$1@dont-email.me> <upgc4f$2454d$1@dont-email.me> <upgekv$24gnk$2@dont-email.me> <JGPuN.297652$PuZ9.135961@fx11.iad> <upgmdd$2605r$1@dont-email.me> <878r44q73s.fsf@nosuchdomain.example.com> <uph28d$27u2h$1@dont-email.me> <uph2ol$285r5$1@dont-email.me>
Lines: 40
Message-ID: <iTUuN.294604$7sbb.120734@fx16.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 01 Feb 2024 22:25:18 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 01 Feb 2024 22:25:18 GMT
X-Received-Bytes: 2361
 by: Scott Lurndal - Thu, 1 Feb 2024 22:25 UTC

"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
>On 2/1/2024 1:25 PM, bart wrote:
>> On 01/02/2024 20:09, Keith Thompson wrote:
>>> bart <bc@freeuk.com> writes:
>>>> On 01/02/2024 16:30, Scott Lurndal wrote:
>>> [...]
>>>>> $ if file /tmp/garage.jpg | grep JPEG > /dev/null^Jthen^Jecho "it is
>>>>> a jpeg"^Jfi
>>>>> it is a jpeg
>>>>
>>>> That doesn't work for me:
>>>
>>> Not if you type the "^J"s as '^' and 'J'.  They were intended to
>>> represent newlines.  I would use semicolons instead:
>>>
>>>      $ if file /tmp/garage.jpg | grep JPEG > /dev/null ; then echo "it
>>> is a jpeg" ; fi
>>>      it is a jpeg
>>>
>>> (I might also use "grep -q" rather than redirecting to /dev/null.)
>>>
>>> [...]
>>>
>>>> I think anyway that you need to grep for JFIF not JPEG, but that is a
>>>> really poor way to check for a JPEG file. Any text or binary file can
>>>> have a JFIF byte sequence.
>>>
>>> That's not an issue.  "file" doesn't just look for "JFIF" to determine
>>> that a file is a jpg.
>>
>> I see, so 'file' is a special command that does all the work. grep
>> checks whether the description contains JPEG. Although it won't work for
>> any of my private formats.
>>
>>
>
>Why would it work with your private formats? ;^)

It will. He needs to describe the classification criteria
in /etc/magic.

Re: iso646.h

<uph6hf$28p5f$1@dont-email.me>

  copy mid

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

  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: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 22:38:38 +0000
Organization: A noiseless patient Spider
Lines: 81
Message-ID: <uph6hf$28p5f$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>
<87v879qdmc.fsf@bsb.me.uk> <upetj9$1p0ag$1@dont-email.me>
<upgbd6$23tto$2@dont-email.me> <upge2t$24gnk$1@dont-email.me>
<uph4kp$28ebd$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 1 Feb 2024 22:38:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3d91f7d22e9d38720ad34c1d4d57f922";
logging-data="2385071"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xR39VHL3aD9KzOXCtCVzibrcywCKNJvE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:c+S5Y1e/R9iBx8Q++AEeLjBml+A=
In-Reply-To: <uph4kp$28ebd$2@dont-email.me>
Content-Language: en-GB
 by: Malcolm McLean - Thu, 1 Feb 2024 22:38 UTC

On 01/02/2024 22:06, David Brown wrote:
> On 01/02/2024 16:41, Malcolm McLean wrote:
>> On 01/02/2024 14:55, David Brown wrote:
>>> On 01/02/2024 02:53, Malcolm McLean wrote:
>>>> On 31/01/2024 23:36, Ben Bacarisse wrote:
>>>>>
>>>>> An example where it's really useful not to care: I have a suite of
>>>>> tools
>>>>> for doing toy cryptanalysis.  Some apply various transformations
>>>>> and/or
>>>>> filters to byte streams and others collect and output (on stderr)
>>>>> various statistics.  Plugging them together in various pipelines is
>>>>> very
>>>>> handy when investigating an encrypted text.  The output is almost
>>>>> always
>>>>> "binary" in the sense that there would be not point in looking at on a
>>>>> terminal.
>>>>>
>>>>> According to you, these tools are poorly designed.  I don't think so.
>>>>> How would you design them?  Endless input and output file names to be
>>>>> juggled and tidied up afterwards?
>>>>>
>>>> I'd write a monolithic program.
>>>
>>> It's very strange to me to see people that consider themselves
>>> programmers talk about having multiple small functions to do specific
>>> tasks and combining them into bigger functions to solve bigger
>>> problems, yet are reduced to quivering jellies at the thought of
>>> multiple small programs to do specific tasks that can be combined to
>>> solve bigger tasks.
>>>
>>> Do you think the C standard library would be improved by a single
>>> function "flubadub" that takes 20 parameters and can calculate
>>> logarithms, print formatted text, allocate memory and write it all to
>>> a file?
>>>
>> By breaking down the problem into several parts e.g. "collect
>> statistical data, analyse statistics, form hypothesis, attempt
>> decryption, check decrypt for plausible plaintext" we can usually
>> attack it better. And you're right, there's not a fundamental
>> difference between writing one program with five subroutines, or five
>> programs which pass data to each other via pipelines.
>
> That's not what I said.  Try re-reading.  I can't be bothered arguing
> against yet another straw man.
>
>> But that doesn't mean that decision must not be made, or that you
>> can't give reasons for and against each option.
>>
>> So could you list one or two reasons why you might prefer a program
>> with five subroutines, and one or two reasons why you might prefer to
>> write five programs which communicate via piped data?
>
I'm sure you're capable of going through the exercise and then you might
gain a bit of insight on how to design such software systems. And, no,
arguing that you'd go for a monolithic program doesn't necessarily mean
that you are a "quivering jelly" at the thought of writing several
simpler ones. And in fact to start you off I actually mentioned a few
advantages of the pipeline approach.

There are advantages and drawbacks to both. But I can't force you to
think about what those might be if you won't, and from experience just
telling you provokes your natural contentiousness and isn't very
effective.

It's reasonable to write a function flubadub which woirks as you say.
It's not going to be a good candidate for the standard library as it
would be too specific to a particular task. Unless it has several modes,
making it effectively several functions with a common call address.
That's not really similar to a monolithic program, even if it does have
several "modes", because the modes would be related. You might have one
mode for attempting decryption and another mode for achiving intercepts,
and because they operate on the same archive, keeping the source in the
same physical program prevents the archiver and the archive reader
getting into incompatible versions. (There's an advantage of monolithic
programs for the list). However you wouldn't write a monolithic program
to decryot and to play space invaders. At least not normally.
--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: iso646.h

<uph6kj$28our$1@dont-email.me>

  copy mid

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

  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: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 14:40:19 -0800
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <uph6kj$28our$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<87v879qdmc.fsf@bsb.me.uk> <upf9ug$1uf0j$1@dont-email.me>
<upg4ol$22tss$1@dont-email.me> <upg65m$235lp$1@dont-email.me>
<upgc4f$2454d$1@dont-email.me> <upgekv$24gnk$2@dont-email.me>
<JGPuN.297652$PuZ9.135961@fx11.iad> <upgmdd$2605r$1@dont-email.me>
<878r44q73s.fsf@nosuchdomain.example.com> <uph28d$27u2h$1@dont-email.me>
<uph2ol$285r5$1@dont-email.me> <iTUuN.294604$7sbb.120734@fx16.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 1 Feb 2024 22:40:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e5db24bf58349e0f24b4ca76196085dd";
logging-data="2384859"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+3xZAYEYOun9ZynZc/bBgme06QyF8ot8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:FksoyEdD2Wklpp94gomjTr6I5SY=
Content-Language: en-US
In-Reply-To: <iTUuN.294604$7sbb.120734@fx16.iad>
 by: Chris M. Thomasson - Thu, 1 Feb 2024 22:40 UTC

On 2/1/2024 2:25 PM, Scott Lurndal wrote:
> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
>> On 2/1/2024 1:25 PM, bart wrote:
>>> On 01/02/2024 20:09, Keith Thompson wrote:
>>>> bart <bc@freeuk.com> writes:
>>>>> On 01/02/2024 16:30, Scott Lurndal wrote:
>>>> [...]
>>>>>> $ if file /tmp/garage.jpg | grep JPEG > /dev/null^Jthen^Jecho "it is
>>>>>> a jpeg"^Jfi
>>>>>> it is a jpeg
>>>>>
>>>>> That doesn't work for me:
>>>>
>>>> Not if you type the "^J"s as '^' and 'J'.  They were intended to
>>>> represent newlines.  I would use semicolons instead:
>>>>
>>>>      $ if file /tmp/garage.jpg | grep JPEG > /dev/null ; then echo "it
>>>> is a jpeg" ; fi
>>>>      it is a jpeg
>>>>
>>>> (I might also use "grep -q" rather than redirecting to /dev/null.)
>>>>
>>>> [...]
>>>>
>>>>> I think anyway that you need to grep for JFIF not JPEG, but that is a
>>>>> really poor way to check for a JPEG file. Any text or binary file can
>>>>> have a JFIF byte sequence.
>>>>
>>>> That's not an issue.  "file" doesn't just look for "JFIF" to determine
>>>> that a file is a jpg.
>>>
>>> I see, so 'file' is a special command that does all the work. grep
>>> checks whether the description contains JPEG. Although it won't work for
>>> any of my private formats.
>>>
>>>
>>
>> Why would it work with your private formats? ;^)
>
> It will. He needs to describe the classification criteria
> in /etc/magic.

Oh, I totally forgot about that!

https://www.ibm.com/docs/en/zos/2.1.0?topic=formats-magic-format-etcmagic-file

Re: iso646.h

<uph7i6$28ugb$1@dont-email.me>

  copy mid

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

  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: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 22:56:05 +0000
Organization: A noiseless patient Spider
Lines: 120
Message-ID: <uph7i6$28ugb$1@dont-email.me>
References: <uokhnk$eiln$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>
<87v879qdmc.fsf@bsb.me.uk> <upeo6c$1oa6o$1@dont-email.me>
<HSBuN.86399$m4d.19963@fx43.iad> <upes68$1oqhv$1@dont-email.me>
<upgb44$23tto$1@dont-email.me> <upgj2i$25d37$1@dont-email.me>
<uph4da$28ebd$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 1 Feb 2024 22:56:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="19d35866713dfba03207e755d1c79dd1";
logging-data="2390539"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/OpebVc3uUPiC3uupUpsfOyhgePOVBDos="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:AN5u4syTE2Mjgqm0YuqCz6HDuYw=
In-Reply-To: <uph4da$28ebd$1@dont-email.me>
Content-Language: en-GB
 by: bart - Thu, 1 Feb 2024 22:56 UTC

On 01/02/2024 22:02, David Brown wrote:
> On 01/02/2024 18:06, bart wrote:

>> You can't send output A to stdout, then B to stdout, and certainly
>> can't interleave messages to the console on stdout, as that would then
>> be all mixed up with the possibly binary data, and if redirected, you
>> won't see it.
>
> $ cat A
> one
> two
> three
>
> $ cat B
>
> cat
> dog
> cow
>
> $ (cat A; cat B) | wc -l
> 6
>
> That's the output of two commands, "cat A" and "cat B", each going to
> their stdout, and they are concatenated into a single pipe going to the
> "wc -l" command to count the lines.

I see you don't get it. This is the equivalent of a program which is
supposed to do this:

print A to TTY
print B to LPT
print C to TTY
print D to LPT

but instead is written as this:

print A to TTY
print B to TTY
print C to TTY
print D to TTY

and you are expected to redirect all TTY output to LPT.

At least, on LPT, B and D can each start with a separate title page; on
stdout directed to a file, it will be all mixed up.

> I'm not sure we are getting anywhere with you trying to invent more and
> more complex situations in an attempt to find something that can't be
> done from a Linux bash shell.

They're remarkably simple situations!

>> And explains why 'as' treats multiple .s input files as though they
>> were all part of the same single source file: you can take one .s
>> file, chop it up into multiple .s files, and submit them all to 'as'
>> (keeping the right order).
>
> It does that because that's what makes sense.

Sorry, but it is rubbish.

> Having it generate multiple .o files for multiple .s inputs
> would restrict that choice.

And yet that is exactly what gcc does; see below.

> You really are scraping the bottom of the barrel to try to justify your
> irrational hatreds, aren't you?  You put a lot of effort into
> desperately trying to dislike programs that don't work exactly the way
> your programs work.

Because their UIs are rubbish. They are inconsistent. They are
restricted. And yet they are deified for some inexplicable reason. Over
the past few decades nobody has written a better assembler?

At least there are external ones you can use instead, but gcc will not
generate .s files in the right syntax (I guess that's another tool you
will pull of that bottomless bag of such tools).

>  It's a very strange hobby you have.

I write language tools. Ones which are always derided in this newsgroup.
They've included quite a few assemblers.

And yet they all have sensible command line interfaces that do what you
expect.

Which is more that can be said for gcc and especially 'as'.

If you do this on gcc:

gcc one.s two.s

it will create one.o and two.s. Do this on as:

as one.s two.s

it will not only create one file a.out, but will concatenate both,
giving unexpected results:

c:\c>gcc -S cipher.c hmac.c sha2.c

c:\c>as cipher.s hmac.s sha2.s
hmac.s: Assembler messages:
hmac.s:328: Error: symbol `.L18' is already defined
hmac.s:352: Error: symbol `.L17' is already defined
...

WTF? Compare with this:

c:\c>mcc -s cipher hmac sha2
Compiling 3 files to .asm

c:\c>aa cipher hmac sha2
Assembling cipher.asm to cipher.exe

It works impeccably. Even better than 'as', even if that had worked as
expected, because there you still have the task of linking the outputs.

Re: iso646.h

<87mssjpxrv.fsf@nosuchdomain.example.com>

  copy mid

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

  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: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 01 Feb 2024 15:31:16 -0800
Organization: None to speak of
Lines: 20
Message-ID: <87mssjpxrv.fsf@nosuchdomain.example.com>
References: <uokhnk$eiln$1@dont-email.me> <up97vr$l025$1@dont-email.me>
<86il3bb7rb.fsf@linuxsc.com> <upaej6$u5ag$1@dont-email.me>
<87v879qdmc.fsf@bsb.me.uk> <upf9ug$1uf0j$1@dont-email.me>
<upg4ol$22tss$1@dont-email.me> <upg65m$235lp$1@dont-email.me>
<upgc4f$2454d$1@dont-email.me> <upgekv$24gnk$2@dont-email.me>
<JGPuN.297652$PuZ9.135961@fx11.iad> <upgmdd$2605r$1@dont-email.me>
<878r44q73s.fsf@nosuchdomain.example.com>
<uph28d$27u2h$1@dont-email.me> <uph2ol$285r5$1@dont-email.me>
<iTUuN.294604$7sbb.120734@fx16.iad>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="a25c07b6296b5291e04aff5e5cd7fea7";
logging-data="2399041"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/24yfJki0OR2r94L2K7NZH"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:1QAQBF+ioOLA6Bagaja4ce/pDeI=
sha1:rkvvtPg5TG4gDoXkrkmcLzAPK4M=
 by: Keith Thompson - Thu, 1 Feb 2024 23:31 UTC

scott@slp53.sl.home (Scott Lurndal) writes:
> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
>>On 2/1/2024 1:25 PM, bart wrote:
[...]
>>> I see, so 'file' is a special command that does all the work. grep
>>> checks whether the description contains JPEG. Although it won't work for
>>> any of my private formats.
>>
>>Why would it work with your private formats? ;^)
>
> It will. He needs to describe the classification criteria
> in /etc/magic.

Modifying system files like that is a bad idea. Fortunately, the "file"
command supports mechanisms for specifying an alternate "magic" file.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: iso646.h

<uphamu$2916e$7@dont-email.me>

  copy mid

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

  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: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 23:49:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <uphamu$2916e$7@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> <20240131151005.00003c92@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 1 Feb 2024 23:49:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2132941f276938b37dd44911619c6d41";
logging-data="2393294"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Nt0oole6HJdG91gy4+7RR"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:35yGrqBynWUJhztYg6PsV8WXFRs=
 by: Lawrence D'Oliv - Thu, 1 Feb 2024 23:49 UTC

On Wed, 31 Jan 2024 15:10:05 +0200, Michael S wrote:

> their earlier mainframe line (PDP-6/10/20).

Nitpick: there was PDP-6 and PDP-10, but never “PDP-20”. There were
systems sold as “DECsystem-10” and “DECsystem-20”, but they were all based
on PDP-10 hardware.

The difference was I think primarily down to the OS: the “DECsystem-10”
installations shipped with TOPS-10, while the “DECsystem-20” machines
shipped with TOPS-20, which was based on the groundbreaking TENEX from
BBN.

TOPS-20 was not in any sense a “successor” to TOPS-10. I suppose it should
have been, but it was too big a shift from the old way of doing things, so
some customers preferred to stick with the clunkier OS. So both the -10
and -20 lines were being sold concurrently.

(End nitpick.)

(Begin extra trivia part.)

The PDP-6 was DEC’s first foray into “large-scale” systems (it had a 36-
bit word length, greater than any earlier DEC machine). They only made a
few, at great expense, and lost money on them. So the line was
discontinued, with the proclamation that they were never getting into 36-
bit machines again.

Then two years later, the architecture was revived as the PDP-10 ...

Re: iso646.h

<uphare$2916e$8@dont-email.me>

  copy mid

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

  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: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 23:52:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <uphare$2916e$8@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> <upds05$1jcte$1@dont-email.me>
<updum6$1k13j$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 1 Feb 2024 23:52:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2132941f276938b37dd44911619c6d41";
logging-data="2393294"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kk/lsiut2sF4z54F83FBL"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:PU/1/EXXWEDtIIou/EqImNNavRE=
 by: Lawrence D'Oliv - Thu, 1 Feb 2024 23:52 UTC

On Wed, 31 Jan 2024 18:06:13 +0100, Janis Papanagnou wrote:

> Yet I don't understand the relation to Linus Torvalds that was the
> source of mentioning VMS. - I mean; only that he dislikes it is not much
> of a news.

It was the reason he gave for disliking it: you could not easily determine
the length in bytes of a file.

Re: iso646.h

<uphb4u$29f8k$1@dont-email.me>

  copy mid

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

  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: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Thu, 1 Feb 2024 23:57:17 +0000
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <uphb4u$29f8k$1@dont-email.me>
References: <uokhnk$eiln$1@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> <86jzno9v19.fsf@linuxsc.com>
<upgc3u$23u8i$2@dont-email.me> <874jesq6p7.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 1 Feb 2024 23:57:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d4868f1b49dc6d454bf866f4067e1ea5";
logging-data="2407700"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VjkZDHXPkOGDBjZu5wtjwLTGaFKEKOlg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:q2kE/9dC3UapObiNKXKbakPiwS4=
Content-Language: en-GB
In-Reply-To: <874jesq6p7.fsf@nosuchdomain.example.com>
 by: Malcolm McLean - Thu, 1 Feb 2024 23:57 UTC

On 01/02/2024 20:18, Keith Thompson wrote:
> Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
> [...]
>> Some things are interesting in themselves and worth talking about at
>> lenght. Like how Haskell builds up functions of functions. Other
>> things really aren't. And how to set up a Unix pipeline is one of
>> those that really aren't (unless actually faced with a such a system
>> and with a practical need to do it).
>
> That's your opinion. You seem to be expecting others to find it correct
> and intuitively obvious if they'd only *think* about it. You're wrong.
> You won't change your mind.
>
No not really.
Elsethread people are talking about the precise syntax for redirecting
output in the UNIX shell. Now of course that's off topic for comp.lang.
If we were talking about the precise syntax for redirecting stdout to
another stream in a C program, it would be different. However I'm one to
talk and you coukd say that many of things I like talking abiut are no
more topical.

The difference is that the syntax for redirecting output in the UNIX
shell is ony of the slightest use if you happen to run that particular
type of system. Now I can't use Haskell for any pratical programaming.
It's a total non-starter. But that doesn't mean that we can't look at
the way Haskell composes functions of functions and use that to gain
insights into how to specify functions, as general programming task.
So you can say "But pipes are a concept not necessarily limited to
Unix." OK, fair enough. But what provoked this was "you don't understand
hiw Unix works". And whilst pipes are a concept, they are no way
comparable in depth and fundamental importance to the concept of
functions of functions.

The point is the two are not comparable. It's not a matter of my
subjective tastes or opinion.
--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: iso646.h

<uphbp8$29h5e$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.furie.org.uk!nntp.terraraq.uk!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Fri, 2 Feb 2024 00:08:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uphbp8$29h5e$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uoqvas$1q40p$1@dont-email.me>
<uor4rf$1r10t$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> <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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 00:08:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2132941f276938b37dd44911619c6d41";
logging-data="2409646"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CvUwqx69nk6uYq8Va1xPP"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:mLrJJwchQtI9qdwyhh6i6qPDUpg=
 by: Lawrence D'Oliv - Fri, 2 Feb 2024 00:08 UTC

On Wed, 31 Jan 2024 14:45:49 +0100, David Brown wrote:

> 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.

Sure, if you were looking for PDF files specifically.

But consider the more generic case of file-transfer tools that try to
automatically convert between line-endings for text files on different
platforms: if they mistook a PDF file for text, they could screw it up
royally.

Re: iso646.h

<upheq8$29vfi$1@dont-email.me>

  copy mid

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

  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: Fri, 2 Feb 2024 01:59:51 +0100
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <upheq8$29vfi$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>
<up8j5h$h743$3@dont-email.me> <up8rsj$it3f$1@dont-email.me>
<87sf2f6eip.fsf@nosuchdomain.example.com> <upbf5t$13jss$1@dont-email.me>
<874jeu60wu.fsf@nosuchdomain.example.com> <upbo9p$1573c$1@dont-email.me>
<updgja$1h4ft$1@dont-email.me> <updia8$1hdgc$1@dont-email.me>
<upfrt1$215au$1@dont-email.me> <upgkp5$25mvh$1@dont-email.me>
<uph35h$2869n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Feb 2024 00:59:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="477ce05e86656f73ba155ebb4f46fbc9";
logging-data="2424306"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+J/elnbnU839jbAfU3aeD7"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:mWL8ZwFJRN0fn6fToS7V0bLuC8Q=
In-Reply-To: <uph35h$2869n$1@dont-email.me>
 by: Janis Papanagnou - Fri, 2 Feb 2024 00:59 UTC

On 01.02.2024 22:41, David Brown wrote:
> On 01/02/2024 18:35, Janis Papanagnou wrote:
>> On 01.02.2024 11:30, David Brown wrote:
>>> On 31/01/2024 14:35, Janis Papanagnou wrote:
>>>>
>>>> First; the EU publishes in all languages of the member states,
>>>> for example. (There's no single lingua franca.)
>>>
>>> Weirdly, while Norway is not in the EU but Sweden and Denmark are, they
>>> publish (for some things at least) in Norwegian but not in Swedish or
>>> Danish. [...]
>>
>> Hmm.. - in my ears this sounds strange. I've looked it up and found...
>>
>> "The EU has 24 official languages:
>>
>> Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish,
>> French, German, Greek, Hungarian, Irish, Italian, Latvian, Lithuanian,
>> Maltese, Polish, Portuguese, Romanian, Slovak, Slovenian, Spanish and
>> Swedish."
>
> I can't say I have looked this up myself, or particularly care what
> languages are used there. Maybe it only applied to some documents, or
> used to apply but no longer does. Maybe some things don't stick rigidly
> to the official languages, or maybe different guidelines are used for
> internal documents.

Extremely unlikely. - More likely that you were just misremembering
or the document you have in mind was not an official EU document.

(But if you can dig it up and provide that evidence I'm interested.)

Janis

Re: iso646.h

<uphfa7$29ukk$3@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c
Subject: Re: iso646.h
Date: Fri, 2 Feb 2024 01:08:24 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <uphfa7$29ukk$3@dont-email.me>
References: <uokhnk$eiln$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>
<87v879qdmc.fsf@bsb.me.uk> <upeo6c$1oa6o$1@dont-email.me>
<HSBuN.86399$m4d.19963@fx43.iad> <upes68$1oqhv$1@dont-email.me>
<upgb44$23tto$1@dont-email.me> <upgj2i$25d37$1@dont-email.me>
<uph4da$28ebd$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 01:08:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2132941f276938b37dd44911619c6d41";
logging-data="2423444"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3882zNOB6/GOZ2rIcA75G"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:RQhnzsjfF56eMKEbtUv7bfId8oA=
 by: Lawrence D'Oliv - Fri, 2 Feb 2024 01:08 UTC

On Thu, 1 Feb 2024 23:02:17 +0100, David Brown wrote:

> But it's not difficult to have intermediary files if you want to do more
> complicated things.

This is the point where someone says “I wish a shell script pipeline could
express a general flow graph”.

..

..

..

..

..

.... nobody?

Re: iso646.h

<uphfdl$2a2km$1@dont-email.me>

  copy mid

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

  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: Fri, 2 Feb 2024 02:10:12 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <uphfdl$2a2km$1@dont-email.me>
References: <uokhnk$eiln$1@dont-email.me> <uoqvas$1q40p$1@dont-email.me>
<uor4rf$1r10t$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> <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>
<uphbp8$29h5e$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Feb 2024 01:10:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="477ce05e86656f73ba155ebb4f46fbc9";
logging-data="2427542"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19V82IKhIvJfloSuhJV+YmK"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:X8hHRnb15XRrEuNm9ZvXpoWjiuo=
In-Reply-To: <uphbp8$29h5e$1@dont-email.me>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Fri, 2 Feb 2024 01:10 UTC

On 02.02.2024 01:08, Lawrence D'Oliveiro wrote:
>
> But consider the more generic case of file-transfer tools that try to
> automatically convert between line-endings for text files on different
> platforms: if they mistook a PDF file for text, they could screw it up
> royally.

What tools are you specifically thinking of? - I recall in FTP you
explicitly set bin-mode or text-mode. I assume that protocols like
FTAM (CCITT) would also transfer files reliably. I would certainly
try to avoid tools that operate unreliably or can't be switched to
operate correctly with [8 bit] "binary" or [ASCII] text files.

Janis


devel / comp.lang.c / iso646.h

Pages:1234567891011121314151617181920212223242526
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor