Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Dinosaurs aren't extinct. They've just learned to hide in the trees.


devel / comp.unix.programmer / Re: Piping to stdin

SubjectAuthor
* Piping to stdinSpiros Bousbouras
+* Piping to stdinSpiros Bousbouras
|`* Piping to stdinKenny McCormack
| +* Piping to stdinKaz Kylheku
| |`* Piping to stdinKenny McCormack
| | `* Piping to stdinKalevi Kolttonen
| |  `* Piping to stdinGary R. Schmidt
| |   +* Piping to stdinKaz Kylheku
| |   |+* Piping to stdinJoe Pfeiffer
| |   ||`* Piping to stdinRichard Harnden
| |   || `- Piping to stdinPhil Carmody
| |   |+- Piping to stdinKeith Thompson
| |   |`* Piping to stdinRichard Kettlewell
| |   | +* Piping to stdinJames Kuyper
| |   | |`- Piping to stdinDavid Brown
| |   | +- Dealing with weird filenames (Was: Piping to stdin)Kenny McCormack
| |   | `* Piping to stdinDavid Brown
| |   |  +* Piping to stdinRichard Kettlewell
| |   |  |`* Piping to stdinScott Lurndal
| |   |  | +- Piping to stdinKenny McCormack
| |   |  | +* Piping to stdinSpiros Bousbouras
| |   |  | |`* Piping to stdinKaz Kylheku
| |   |  | | `- Piping to stdinKaz Kylheku
| |   |  | +* Piping to stdinKeith Thompson
| |   |  | |`* Piping to stdinGeoff Clare
| |   |  | | `- Piping to stdinKeith Thompson
| |   |  | `- Piping to stdinPhil Carmody
| |   |  `* Piping to stdinRichard Harnden
| |   |   +- Piping to stdinScott Lurndal
| |   |   `- Piping to stdinvallor
| |   `* Piping to stdinKalevi Kolttonen
| |    +* Piping to stdinGiovanni
| |    |`* Piping to stdinKenny McCormack
| |    | `* Piping to stdinKalevi Kolttonen
| |    |  +* Piping to stdinPhil Carmody
| |    |  |`* Piping to stdinLew Pitcher
| |    |  | `* Piping to stdinPhil Carmody
| |    |  |  `* Piping to stdinLew Pitcher
| |    |  |   +- Piping to stdinKaz Kylheku
| |    |  |   `- Piping to stdinPhil Carmody
| |    |  +- Piping to stdinBen Bacarisse
| |    |  `* Piping to stdinMuttley
| |    |   +* Piping to stdinPhil Carmody
| |    |   |`* Piping to stdinMuttley
| |    |   | +* Piping to stdinPhil Carmody
| |    |   | |+* Piping to stdinGeoff Clare
| |    |   | ||`- Piping to stdinMuttley
| |    |   | |+* Wrecking a good thing? (Was: Piping to stdin)Kenny McCormack
| |    |   | ||+- Wrecking a good thing?Phil Carmody
| |    |   | ||`- Wrecking a good thing? (Was: Piping to stdin)David Brown
| |    |   | |`- Piping to stdinMuttley
| |    |   | +* Piping to stdinKaz Kylheku
| |    |   | |+- Piping to stdinMuttley
| |    |   | |+- Piping to stdinKeith Thompson
| |    |   | |`- Piping to stdinDavid Brown
| |    |   | `* Piping to stdinBen Bacarisse
| |    |   |  `* Piping to stdinPhil Carmody
| |    |   |   +* Piping to stdinOğuz
| |    |   |   |`* Piping to stdinMuttley
| |    |   |   | +* Piping to stdinScott Lurndal
| |    |   |   | |`- Piping to stdinMuttley
| |    |   |   | `* Piping to stdinRainer Weikusat
| |    |   |   |  `* What language is this? (Was: Piping to stdin)Kenny McCormack
| |    |   |   |   `* What language is this? (Was: Piping to stdin)Scott Lurndal
| |    |   |   |    +* What language is this? (Was: Piping to stdin)Kenny McCormack
| |    |   |   |    |`* What language is this?Rainer Weikusat
| |    |   |   |    | `* What language is this?Kenny McCormack
| |    |   |   |    |  `* What language is this?Rainer Weikusat
| |    |   |   |    |   `* What language is this?Kenny McCormack
| |    |   |   |    |    `- What language is this?Rainer Weikusat
| |    |   |   |    `- What language is this? (Was: Piping to stdin)Muttley
| |    |   |   `* Piping to stdinBen Bacarisse
| |    |   |    `- Piping to stdinKalevi Kolttonen
| |    |   +* Piping to stdinKalevi Kolttonen
| |    |   |`* Piping to stdinMuttley
| |    |   | `* Piping to stdinKalevi Kolttonen
| |    |   |  `- Piping to stdinScott Lurndal
| |    |   `- Piping to stdinKaz Kylheku
| |    `- Piping to stdinPhil Carmody
| `- Piping to stdinNuno Silva
`* Piping to stdinJoe Pfeiffer
 `* Piping to stdinSpiros Bousbouras
  `* Piping to stdinBen Bacarisse
   `* Piping to stdinKenny McCormack
    `* Piping to stdinScott Lurndal
     `* Piping to stdinRichard Harnden
      `- Piping to stdinScott Lurndal

Pages:1234
Re: Piping to stdin

<ubkt02$3o9rp$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9907&group=comp.unix.programmer#9907

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 10:32:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <ubkt02$3o9rp$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me>
<87o7j82gix.fsf@fatphil.org>
Injection-Date: Thu, 17 Aug 2023 10:32:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c22366ece291fcc511ce050dc38e085e";
logging-data="3942265"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Tmf+o7OwMTIFsEQNKwdTv"
Cancel-Lock: sha1:tqV2x/habL3csZe3MD+ffdcs7jc=
 by: Mutt...@dastardlyhq.com - Thu, 17 Aug 2023 10:32 UTC

On Tue, 15 Aug 2023 23:32:22 +0300
Phil Carmody <pc+usenet@asdf.org> wrote:
>Muttley@dastardlyhq.com writes:
>> On Tue, 15 Aug 2023 16:12:19 -0000 (UTC)
>> kalevi@kolttonen.fi (Kalevi Kolttonen) wrote:
>>>Kenny McCormack <gazelle@shell.xmission.com> wrote:
>>>> But do they know that???
>>>
>>>"They" probably don't know it. But let's face it,
>>>nobody really wants to create a file having '-'
>>>filename on purpose. The filename is not descriptive
>>>at all, it would be just an insane choice for anything
>>>useful.
>>
>> I used to think the same thing about spaces in filenames. Then along came
>> Windows.
>
>Your memory if flawed. Spaces were always allowed in unix
>filenames. Often used to hide things in plain sight on FTP sites, for
>example.

Any character from 0-255 is allowed in unix filenames but only an idiot would
use spaces and non printing characters.

>MS Windows didn't allow spaces until Windows 95. I remember the Apple

DOS didn't like filenames more than 8 characters long and required a TLA.
So what?

It has become a standard in windows to use spaces in filenames no doubt due
to the hopeless command line interface so there was no necessity to play nice
with command line tools that by default use whitespace as field seperators.

>had it on my wall at work. Not because I was an Apple fanboi, far
>from it, but my disdain for all things MS Windows was already
>entrenched, and I was being forced to use it for the not-the-actual-work
>part of my job (which was on Sun workstations).

Apple arguably are even worse right now - case aware but case insensitive
unless you use wildcards on the command line when suddenly case matters again.
Hopeless.

eg:
fenris$ touch HELLO
fenris$ ls hello
hello
fenris$ ls H*
HELLO
fenris$ ls h*
ls: h*: No such file or directory

Re: Piping to stdin

<87350h28j9.fsf@fatphil.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9909&group=comp.unix.programmer#9909

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pc+use...@asdf.org (Phil Carmody)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 14:49:30 +0300
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <87350h28j9.fsf@fatphil.org>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<87sf8k2gw3.fsf@fatphil.org> <ubgoee$2rs7p$1@dont-email.me>
<87fs4j2i27.fsf@fatphil.org> <ubipom$3ajkp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="c5ae6d758bdcdf7c941356aad3a595c3";
logging-data="3957524"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+UrKCx8J9LRguSWgcbft0"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:ltvNTJHekpY6BiijEQTpbT/9hOM=
sha1:nsDHvbtJmagTBUE4voEyzEIx3D8=
 by: Phil Carmody - Thu, 17 Aug 2023 11:49 UTC

Lew Pitcher <lew.pitcher@digitalfreehold.ca> writes:
> On Wed, 16 Aug 2023 17:11:28 +0300, Phil Carmody wrote:
>> Lew Pitcher <lew.pitcher@digitalfreehold.ca> writes:
>>> On Tue, 15 Aug 2023 23:24:28 +0300, Phil Carmody wrote:
> [snip]
>>>>> I guess the stdin convention '-' is decades old.
>>>>> It was chosen because they had pick something that
>>>>> is short and not likely to exist as a real file.
>>>>
>>>> I propose that '|' might have been better - it's even mnemonic.
>>>
>>> But, '|' conflicts with the shell pipe character, and would need
>>> a workaround in some cases. For example,
>>
>> It's doing something special, why wouldn't you expect to do something
>> special to make use of it?
>
> Okay, then. How about a counter proposal:
> For Unix shells, the < character indicates redirection of stdin.
> I propose that '<' might have been a better choice as a standard
> program option to flag "read from stdin" than either '|' /or/ '-'
> were. :-)

Why *better* than '|', rather than *equally good as*, given that the
logic is absolutely equivalent?

Phil
--
We are no longer hunters and nomads. No longer awed and frightened, as we have
gained some understanding of the world in which we live. As such, we can cast
aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/

Re: Piping to stdin

<87y1i9zy1s.fsf@fatphil.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9910&group=comp.unix.programmer#9910

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pc+use...@asdf.org (Phil Carmody)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 14:51:59 +0300
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <87y1i9zy1s.fsf@fatphil.org>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<LtQSo3SOOU09AXJ1X@bongo-ra.co> <ubbua5$3hium$1@news.xmission.com>
<20230813200644.979@kylheku.com> <ubc63c$3hlul$2@news.xmission.com>
<ubdgcv$2carp$2@dont-email.me>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<20230814215312.550@kylheku.com>
<wwvleeceobt.fsf@LkoBDZeT.terraraq.uk> <ubfus8$2rc7s$1@dont-email.me>
<wwvr0o3j618.fsf@LkoBDZeT.terraraq.uk>
<TP7DM.428701$U3w1.87269@fx09.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="c5ae6d758bdcdf7c941356aad3a595c3";
logging-data="3957524"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fPFItNWBZ48KU8bAZTgXo"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:WJxgM+HsIIqIMcSU1J75b390bBk=
sha1:i0xw15wy1QkaATQdGfh1GGPfkhc=
 by: Phil Carmody - Thu, 17 Aug 2023 11:51 UTC

scott@slp53.sl.home (Scott Lurndal) writes:
> Richard Kettlewell <invalid@invalid.invalid> writes:
>>David Brown <david.brown@hesbynett.no> writes:
>>> On 15/08/2023 09:50, Richard Kettlewell wrote:
>>>> The cases I’ve encountered are where someone accidentally creates a
>>>> file with a weird name (starts with - or whatever) and then has
>>>> trouble deleting it. I don’t think they got as far as having
>>>> accidents with wildcards in the cases I remember, but the basic setup
>>>> of a file with a ridiculous name and a non-expert user does happen
>>>> occasionally.
>>>
>>> It's usually sufficient just to put the awkward name inside quotation marks.
>>
>>In the case we started with, quoting is not sufficient.
>
> Doesn't that depend on the type of quote? glob characters (*, ?) are
> treated as regular characters in single quotes, for example.

No, it depends on the program you intend to pass the filename to, and
how it treats its arguments.

Which we don't know. So we can't say anything more at the moment.

Phil
--
We are no longer hunters and nomads. No longer awed and frightened, as we have
gained some understanding of the world in which we live. As such, we can cast
aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/

Re: Piping to stdin

<87ttsxzxs7.fsf@fatphil.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9911&group=comp.unix.programmer#9911

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pc+use...@asdf.org (Phil Carmody)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 14:57:44 +0300
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <87ttsxzxs7.fsf@fatphil.org>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org>
<ubkt02$3o9rp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="c5ae6d758bdcdf7c941356aad3a595c3";
logging-data="3957524"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PH4ghsDLod1T/Cimfcbja"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:b99DfaSh1SKki0eCANbIimbzMEg=
sha1:nQeaQMv1NBY0KKokw+XFI9LtK0Y=
 by: Phil Carmody - Thu, 17 Aug 2023 11:57 UTC

Muttley@dastardlyhq.com writes:
> On Tue, 15 Aug 2023 23:32:22 +0300
> Phil Carmody <pc+usenet@asdf.org> wrote:
>>Muttley@dastardlyhq.com writes:
>>> On Tue, 15 Aug 2023 16:12:19 -0000 (UTC)
>>> kalevi@kolttonen.fi (Kalevi Kolttonen) wrote:
>>>>Kenny McCormack <gazelle@shell.xmission.com> wrote:
>>>>> But do they know that???
>>>>
>>>>"They" probably don't know it. But let's face it,
>>>>nobody really wants to create a file having '-'
>>>>filename on purpose. The filename is not descriptive
>>>>at all, it would be just an insane choice for anything
>>>>useful.
>>>
>>> I used to think the same thing about spaces in filenames. Then along came
>>> Windows.
>>
>>Your memory if flawed. Spaces were always allowed in unix
>>filenames. Often used to hide things in plain sight on FTP sites, for
>>example.
>
> Any character from 0-255 is allowed in unix filenames but only an idiot would
> use spaces and non printing characters.
>
>>MS Windows didn't allow spaces until Windows 95. I remember the Apple
>
> DOS didn't like filenames more than 8 characters long and required a TLA.
> So what?
>
> It has become a standard in windows to use spaces in filenames no doubt due
> to the hopeless command line interface so there was no necessity to play nice
> with command line tools that by default use whitespace as field seperators.
>
>>had it on my wall at work. Not because I was an Apple fanboi, far
>>from it, but my disdain for all things MS Windows was already
>>entrenched, and I was being forced to use it for the not-the-actual-work
>>part of my job (which was on Sun workstations).
>
> Apple arguably are even worse right now - case aware but case insensitive
> unless you use wildcards on the command line when suddenly case matters again.
> Hopeless.
>
> eg:
> fenris$ touch HELLO
> fenris$ ls hello
> hello
> fenris$ ls H*
> HELLO
> fenris$ ls h*
> ls: h*: No such file or directory

That I didn't know. Wow - if that's an actual interactive session being
quoted, that's frightening. Thanks for reminding me why my installation
of linux on my Apple G5 box wasn't moment too soon. How can people live
with such wrongthink? Stockholm Syndrome?

Mind geboggled,
Phil
--
We are no longer hunters and nomads. No longer awed and frightened, as we have
gained some understanding of the world in which we live. As such, we can cast
aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/

Re: Piping to stdin

<ong1rj-qmu.ln1@ID-313840.user.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9912&group=comp.unix.programmer#9912

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: geo...@clare.See-My-Signature.invalid (Geoff Clare)
Newsgroups: comp.unix.programmer
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 13:34:32 +0100
Lines: 15
Message-ID: <ong1rj-qmu.ln1@ID-313840.user.individual.net>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<LtQSo3SOOU09AXJ1X@bongo-ra.co> <ubbua5$3hium$1@news.xmission.com>
<20230813200644.979@kylheku.com> <ubc63c$3hlul$2@news.xmission.com>
<ubdgcv$2carp$2@dont-email.me>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<20230814215312.550@kylheku.com> <wwvleeceobt.fsf@LkoBDZeT.terraraq.uk>
<ubfus8$2rc7s$1@dont-email.me> <wwvr0o3j618.fsf@LkoBDZeT.terraraq.uk>
<TP7DM.428701$U3w1.87269@fx09.iad> <877cpulo80.fsf@nosuchdomain.example.com>
Reply-To: netnews@gclare.org.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net saFIfJzoBSgvAQ8HD38TBQUpHFtpU1Mq3vn7MxJ50oyRopFQUD
X-Orig-Path: ID-313840.user.individual.net!not-for-mail
Cancel-Lock: sha1:EeJHS94MarcNKMxp1alEsSNIPJU= sha256:u0Git38XsoiCjKtPyxBUpPZ/Y7pDarAjIH8EqfBRqtk=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Geoff Clare - Thu, 17 Aug 2023 12:34 UTC

Keith Thompson wrote:

> If you have a file named -r, you can delete it with `rm ./-r`, or
> `rm -- -r` if your rm implementation supports that (POSIX doesn't
> specify it).

POSIX does specify that "rm -- -r" removes a file called -r.

Almost all the utilities have a statement under OPTIONS that they
conform to XBD 12.2 Utility Syntax Guidelines (in some cases with
exceptions for specific individual guidelines). The requirement to
support "--" is guideline 10.

--
Geoff Clare <netnews@gclare.org.uk>

Re: Piping to stdin

<dkh1rj-qmu.ln1@ID-313840.user.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9914&group=comp.unix.programmer#9914

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: geo...@clare.See-My-Signature.invalid (Geoff Clare)
Newsgroups: comp.unix.programmer
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 13:49:49 +0100
Lines: 39
Message-ID: <dkh1rj-qmu.ln1@ID-313840.user.individual.net>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org>
<ubkt02$3o9rp$1@dont-email.me> <87ttsxzxs7.fsf@fatphil.org>
Reply-To: netnews@gclare.org.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net weyffUe+XUPgAUxrQdqVNwZuGuf1fuLpzWdg8zHNmmKZlvCzPf
X-Orig-Path: ID-313840.user.individual.net!not-for-mail
Cancel-Lock: sha1:mcR/0G7getNNkLUTYYXu9G7sVI4= sha256:M5pqotrNy4TAfv3fZnpeii6/ZhZfY/5L1pLqBFMGlQE=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Geoff Clare - Thu, 17 Aug 2023 12:49 UTC

Phil Carmody wrote:

> Muttley@dastardlyhq.com writes:
>>
>> Apple arguably are even worse right now - case aware but case insensitive
>> unless you use wildcards on the command line when suddenly case matters again.
>> Hopeless.
>>
>> eg:
>> fenris$ touch HELLO
>> fenris$ ls hello
>> hello
>> fenris$ ls H*
>> HELLO
>> fenris$ ls h*
>> ls: h*: No such file or directory
>
> That I didn't know. Wow - if that's an actual interactive session being
> quoted, that's frightening. Thanks for reminding me why my installation
> of linux on my Apple G5 box wasn't moment too soon. How can people live
> with such wrongthink?

They don't have to: they can configure the filesystem that contains
their home directory to be properly case sensitive.

I have access to an ancient MacBook which is configured that way:

$ uname -sr
Darwin 15.4.0
$ touch HELLO
$ ls hello
ls: hello: No such file or directory
$ ls H*
HELLO
$ ls h*
ls: h*: No such file or directory

--
Geoff Clare <netnews@gclare.org.uk>

Re: Piping to stdin

<20230817065027.422@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9915&group=comp.unix.programmer#9915

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 13:52:23 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <20230817065027.422@kylheku.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org>
<ubkt02$3o9rp$1@dont-email.me>
Injection-Date: Thu, 17 Aug 2023 13:52:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1aa1e972d16a2b9e389dd8d4860af990";
logging-data="3992894"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CzDzf3A8sTlmOZk8xN/A62rdcCHREydM="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:HQNulQbNwlr6VUbbIvSFoKb9hKI=
 by: Kaz Kylheku - Thu, 17 Aug 2023 13:52 UTC

On 2023-08-17, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
> Any character from 0-255 is allowed in unix filenames but only an idiot would
> use spaces and non printing characters.

That's simply false. 0 is the null terminator and is not actually part
of the name. The path-component-separating slash cannot be contained in
a path component; there is no escape mechanism to include it.

POSIX defines a set of characters which are recommended for use in file
names for portability; it is wise for applications and users to stick to
that.

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

Wrecking a good thing? (Was: Piping to stdin)

<ubl9nc$3md6c$1@news.xmission.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9916&group=comp.unix.programmer#9916

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Wrecking a good thing? (Was: Piping to stdin)
Date: Thu, 17 Aug 2023 14:09:48 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <ubl9nc$3md6c$1@news.xmission.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <87o7j82gix.fsf@fatphil.org> <ubkt02$3o9rp$1@dont-email.me> <87ttsxzxs7.fsf@fatphil.org>
Injection-Date: Thu, 17 Aug 2023 14:09:48 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3880140"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Thu, 17 Aug 2023 14:09 UTC

In article <87ttsxzxs7.fsf@fatphil.org>,
Phil Carmody <pc+usenet@asdf.org> wrote:
....
>> ls: h*: No such file or directory
>
>That I didn't know. Wow - if that's an actual interactive session being
>quoted, that's frightening. Thanks for reminding me why my installation
>of linux on my Apple G5 box wasn't moment too soon. How can people live
>with such wrongthink? Stockholm Syndrome?

Kinda hate to disagree with ya there, but running Linux on Apple hardware
is like buying a BMW, ripping out the engine, and changing it into a go-kart.

Now, before you think I'm some Apple Fanboy, let me assure you that just
the opposite is true. I run all Linux, but I consider it wrong to pay more
than $100 for the box upon which I run Linux. That's why I'm all Raspberry
Pi nowadays.

But if you've paid Apple's exhorbitant fee to buy their hardware, then you
might as well be running their OS. I don't want to have to dot all the I's
and cross all the T's on this, but I assume you get what I mean. If you
like Linux, you should not be paying Apple prices for your hardware.

Or, to put it another way, Apple stuff (hardware and software) is for
people who like that sort of thing. And they do indeed like it.

By the way, the car analogy is not accidental. I believe that the more you
pay for a car, the more problems you will have with it. You are literally
paying for the problems. And again, there are people who like that. So,
again, paying lots for a car is for people who like that sort of thing.
And they do indeed like it.

--
The randomly chosen signature file that would have appeared here is more than 4
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/IceCream

Re: Piping to stdin

<ublago$3q43k$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9917&group=comp.unix.programmer#9917

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kal...@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 14:23:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Sender: <untosten@0.0.0.0>
Message-ID: <ublago$3q43k$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au> <ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it> <ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me> <ubg8no$2t2as$1@dont-email.me> <ubksl2$3o8ao$1@dont-email.me>
Injection-Date: Thu, 17 Aug 2023 14:23:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="04f2b2260dd64959a3b64bd8404ea6aa";
logging-data="4001908"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Kb+1kA600jYdiASY2gzOl2SYaPqXOl78="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.4.10-200.fc38.x86_64 (x86_64))
Cancel-Lock: sha1:bqj24s4sp3g0YLRvCD75l6ik7cs=
 by: Kalevi Kolttonen - Thu, 17 Aug 2023 14:23 UTC

In comp.unix.programmer Muttley@dastardlyhq.com wrote:
> They both cause problems.

So do nuclear bombs and fentynyl, yet they have
not enough in common to make a sensible comparison
between them.

Similar reasoning applies to filenames with spaces
and the '-' stdin convention. Many people like
the former and are justified in doing so, but
nobody has the desire to use '-' as a filename.

I am tired of making this obvious point over and
over, so if it does not sink in now, I have to
give up.

br,
KK

Re: Piping to stdin

<ubldfs$3qles$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9919&group=comp.unix.programmer#9919

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 15:14:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <ubldfs$3qles$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org>
<ubkt02$3o9rp$1@dont-email.me>
<87ttsxzxs7.fsf@fatphil.org>
Injection-Date: Thu, 17 Aug 2023 15:14:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c22366ece291fcc511ce050dc38e085e";
logging-data="4019676"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jbKlyYsebZCsu+EqXp7pe"
Cancel-Lock: sha1:QP6sBPt4zi5ICLNuKgRMQWjDqSk=
 by: Mutt...@dastardlyhq.com - Thu, 17 Aug 2023 15:14 UTC

On Thu, 17 Aug 2023 14:57:44 +0300
Phil Carmody <pc+usenet@asdf.org> wrote:
>Muttley@dastardlyhq.com writes:
>> Apple arguably are even worse right now - case aware but case insensitive
>> unless you use wildcards on the command line when suddenly case matters
>again.
>> Hopeless.
>>
>> eg:
>> fenris$ touch HELLO
>> fenris$ ls hello
>> hello
>> fenris$ ls H*
>> HELLO
>> fenris$ ls h*
>> ls: h*: No such file or directory
>
>That I didn't know. Wow - if that's an actual interactive session being

It is, its a cut and paste from the terminal.

>quoted, that's frightening. Thanks for reminding me why my installation
>of linux on my Apple G5 box wasn't moment too soon. How can people live
>with such wrongthink? Stockholm Syndrome?

I bought a Mac because I wanted a unix box that I could just switch on and
get coding rather than mess about installing some linux distro and hope the
bits all work. Plus MacOS has a bonus of lots of high quality apps on the
App Store. Though tbh if Solaris workstations were still a thing I'd have bought
one of them instead.

Re: Piping to stdin

<ubldic$3qlvs$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9920&group=comp.unix.programmer#9920

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 15:15:24 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <ubldic$3qlvs$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org>
<ubkt02$3o9rp$1@dont-email.me> <87ttsxzxs7.fsf@fatphil.org>
<dkh1rj-qmu.ln1@ID-313840.user.individual.net>
Injection-Date: Thu, 17 Aug 2023 15:15:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c22366ece291fcc511ce050dc38e085e";
logging-data="4020220"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185XepI+3zzd0AVBHNPhlr7"
Cancel-Lock: sha1:AUoMPBYuLab1CeJyDdrxM4rjfuw=
 by: Mutt...@dastardlyhq.com - Thu, 17 Aug 2023 15:15 UTC

On Thu, 17 Aug 2023 13:49:49 +0100
Geoff Clare <geoff@clare.See-My-Signature.invalid> wrote:
>Phil Carmody wrote:
>
>> Muttley@dastardlyhq.com writes:
>>>
>>> Apple arguably are even worse right now - case aware but case insensitive
>>> unless you use wildcards on the command line when suddenly case matters
>again.
>>> Hopeless.
>>>
>>> eg:
>>> fenris$ touch HELLO
>>> fenris$ ls hello
>>> hello
>>> fenris$ ls H*
>>> HELLO
>>> fenris$ ls h*
>>> ls: h*: No such file or directory
>>
>> That I didn't know. Wow - if that's an actual interactive session being
>> quoted, that's frightening. Thanks for reminding me why my installation
>> of linux on my Apple G5 box wasn't moment too soon. How can people live
>> with such wrongthink?
>
>They don't have to: they can configure the filesystem that contains
>their home directory to be properly case sensitive.

You can, but it can break a lot of programs that expect case insensitivity.

Re: Piping to stdin

<ublds9$3qned$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9921&group=comp.unix.programmer#9921

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 15:20:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <ublds9$3qned$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org>
<ubkt02$3o9rp$1@dont-email.me>
<20230817065027.422@kylheku.com>
Injection-Date: Thu, 17 Aug 2023 15:20:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c22366ece291fcc511ce050dc38e085e";
logging-data="4021709"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/D8oRTpWxavmZOYlxEJlPh"
Cancel-Lock: sha1:MMXWaG2tP77B3fQUxtct9V3MQ2U=
 by: Mutt...@dastardlyhq.com - Thu, 17 Aug 2023 15:20 UTC

On Thu, 17 Aug 2023 13:52:23 -0000 (UTC)
Kaz Kylheku <864-117-4973@kylheku.com> wrote:
>On 2023-08-17, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
>> Any character from 0-255 is allowed in unix filenames but only an idiot would
>
>> use spaces and non printing characters.
>
>That's simply false. 0 is the null terminator and is not actually part
>of the name. The path-component-separating slash cannot be contained in
>a path component; there is no escape mechanism to include it.

Ok, there are a couple of exceptions. Point still stands.

>POSIX defines a set of characters which are recommended for use in file
>names for portability; it is wise for applications and users to stick to
>that.

But they don't have to and when UTF8 filenames get used things can get messy
on non UTF8 terminals.

Re: Piping to stdin

<iZqDM.215513$uLJb.162159@fx41.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9923&group=comp.unix.programmer#9923

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.us.feeder.erje.net!feeder.erje.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx41.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: Piping to stdin
Newsgroups: comp.unix.programmer,comp.lang.c
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au> <ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it> <ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me> <ubg8no$2t2as$1@dont-email.me> <ubksl2$3o8ao$1@dont-email.me> <ublago$3q43k$1@dont-email.me>
Lines: 21
Message-ID: <iZqDM.215513$uLJb.162159@fx41.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 17 Aug 2023 15:25:02 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 17 Aug 2023 15:25:02 GMT
X-Received-Bytes: 1745
 by: Scott Lurndal - Thu, 17 Aug 2023 15:25 UTC

kalevi@kolttonen.fi (Kalevi Kolttonen) writes:
>In comp.unix.programmer Muttley@dastardlyhq.com wrote:
>> They both cause problems.
>
>So do nuclear bombs and fentynyl, yet they have
>not enough in common to make a sensible comparison
>between them.
>
>Similar reasoning applies to filenames with spaces
>and the '-' stdin convention. Many people like
>the former and are justified in doing so, but
>nobody has the desire to use '-' as a filename.
>
>I am tired of making this obvious point over and
>over, so if it does not sink in now, I have to
>give up.

It's like arguments about how many angels can dance
on the point of a pin - the use of a single hyphen
to denote stdin will _never_ change, it is pointless
to assume otherwise.

Re: Piping to stdin

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

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9924&group=comp.unix.programmer#9924

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 13:43:15 -0700
Organization: None to speak of
Lines: 23
Message-ID: <87jzttjt7g.fsf@nosuchdomain.example.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org>
<ubkt02$3o9rp$1@dont-email.me> <20230817065027.422@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="b05999d425cd7ec276267a84f508b846";
logging-data="4108871"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TVwf9uiffsrKMnLMWSKHu"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:cfABIRdom7jXOCrbPMvaEb4Ordk=
sha1:zcKNqF5m+pIDX5yeV8zFZJRtVFo=
 by: Keith Thompson - Thu, 17 Aug 2023 20:43 UTC

Kaz Kylheku <864-117-4973@kylheku.com> writes:
> On 2023-08-17, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
>> Any character from 0-255 is allowed in unix filenames but only an idiot would
>> use spaces and non printing characters.
>
> That's simply false. 0 is the null terminator and is not actually part
> of the name. The path-component-separating slash cannot be contained in
> a path component; there is no escape mechanism to include it.
>
> POSIX defines a set of characters which are recommended for use in file
> names for portability; it is wise for applications and users to stick to
> that.

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_282

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
a b c d e f g h i j k l m n o p q r s t u v w x y z
0 1 2 3 4 5 6 7 8 9 . _ -

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: Piping to stdin

<87v8dde6j3.fsf@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9925&group=comp.unix.programmer#9925

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 21:52:00 +0100
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <87v8dde6j3.fsf@bsb.me.uk>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org>
<ubkt02$3o9rp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="c666b555a840b444cd6c032219f8b5e7";
logging-data="4118863"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rOHZPMo+nttocAy36PGVDcxfIzlVX16M="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:mZ6j1rJ2fNxzrV37lcvS4fJEgWE=
sha1:CkvQHq3I8uHjXbO/TRQET4xCTT4=
X-BSB-Auth: 1.ef06b4393aae2f66ac13.20230817215200BST.87v8dde6j3.fsf@bsb.me.uk
 by: Ben Bacarisse - Thu, 17 Aug 2023 20:52 UTC

Muttley@dastardlyhq.com writes:

> On Tue, 15 Aug 2023 23:32:22 +0300
> Phil Carmody <pc+usenet@asdf.org> wrote:
>>Muttley@dastardlyhq.com writes:
>>> On Tue, 15 Aug 2023 16:12:19 -0000 (UTC)
>>> kalevi@kolttonen.fi (Kalevi Kolttonen) wrote:
>>>>Kenny McCormack <gazelle@shell.xmission.com> wrote:
>>>>> But do they know that???
>>>>
>>>>"They" probably don't know it. But let's face it,
>>>>nobody really wants to create a file having '-'
>>>>filename on purpose. The filename is not descriptive
>>>>at all, it would be just an insane choice for anything
>>>>useful.
>>>
>>> I used to think the same thing about spaces in filenames. Then along came
>>> Windows.
>>
>>Your memory if flawed. Spaces were always allowed in unix
>>filenames. Often used to hide things in plain sight on FTP sites, for
>>example.
>
> Any character from 0-255 is allowed in unix filenames but only an idiot would
> use spaces and non printing characters.

To some extent it depends on the file system, and to some extent it's
down to the kernel, but I don't know of any Unix/FS combination that
permits 0 (null) bytes in file names. I can't see how it could work.

And almost all file systems will prohibit the use of / in a file name,
though I've heard you can trick NFS into taking it.

Some file systems (depending on mount options) can have complex rules
such as rejecting any name with an invalid UTF-8 sequence.

--
Ben.

Re: Piping to stdin

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

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9926&group=comp.unix.programmer#9926

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.programmer
Subject: Re: Piping to stdin
Date: Thu, 17 Aug 2023 14:27:51 -0700
Organization: None to speak of
Lines: 22
Message-ID: <87cyzljr54.fsf@nosuchdomain.example.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<LtQSo3SOOU09AXJ1X@bongo-ra.co> <ubbua5$3hium$1@news.xmission.com>
<20230813200644.979@kylheku.com> <ubc63c$3hlul$2@news.xmission.com>
<ubdgcv$2carp$2@dont-email.me>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<20230814215312.550@kylheku.com>
<wwvleeceobt.fsf@LkoBDZeT.terraraq.uk> <ubfus8$2rc7s$1@dont-email.me>
<wwvr0o3j618.fsf@LkoBDZeT.terraraq.uk>
<TP7DM.428701$U3w1.87269@fx09.iad>
<877cpulo80.fsf@nosuchdomain.example.com>
<ong1rj-qmu.ln1@ID-313840.user.individual.net>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="b05999d425cd7ec276267a84f508b846";
logging-data="4127414"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VlcLaoW0PwpK3Z9BEL9fr"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:Z2/S+pMQywDsd9vJNjdV1GRl9W0=
sha1:IQ+HXz1UDZrhm41q+jKKeDUwcr8=
 by: Keith Thompson - Thu, 17 Aug 2023 21:27 UTC

Geoff Clare <geoff@clare.See-My-Signature.invalid> writes:
> Keith Thompson wrote:
>
>> If you have a file named -r, you can delete it with `rm ./-r`, or
>> `rm -- -r` if your rm implementation supports that (POSIX doesn't
>> specify it).
>
> POSIX does specify that "rm -- -r" removes a file called -r.
>
> Almost all the utilities have a statement under OPTIONS that they
> conform to XBD 12.2 Utility Syntax Guidelines (in some cases with
> exceptions for specific individual guidelines). The requirement to
> support "--" is guideline 10.

Quite right, I sit corrected.

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: Wrecking a good thing?

<87edk1z6uh.fsf@fatphil.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9927&group=comp.unix.programmer#9927

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pc+use...@asdf.org (Phil Carmody)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Wrecking a good thing?
Date: Fri, 18 Aug 2023 00:39:34 +0300
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <87edk1z6uh.fsf@fatphil.org>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<87o7j82gix.fsf@fatphil.org> <ubkt02$3o9rp$1@dont-email.me>
<87ttsxzxs7.fsf@fatphil.org> <ubl9nc$3md6c$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="c5ae6d758bdcdf7c941356aad3a595c3";
logging-data="4134452"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ApoB1G5e//Z3OHN2Lw69R"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:aDN3qEQAu7RqFQhuXJzu3CwSJRI=
sha1:lrScRFJrDHwkhuqWEKO3EwV33pQ=
 by: Phil Carmody - Thu, 17 Aug 2023 21:39 UTC

gazelle@shell.xmission.com (Kenny McCormack) writes:
> In article <87ttsxzxs7.fsf@fatphil.org>,
> Phil Carmody <pc+usenet@asdf.org> wrote:
> ...
>>> ls: h*: No such file or directory
>>
>>That I didn't know. Wow - if that's an actual interactive session being
>>quoted, that's frightening. Thanks for reminding me why my installation
>>of linux on my Apple G5 box wasn't moment too soon. How can people live
>>with such wrongthink? Stockholm Syndrome?
>
> Kinda hate to disagree with ya there, but running Linux on Apple hardware
> is like buying a BMW, ripping out the engine, and changing it into a go-kart.
>
> Now, before you think I'm some Apple Fanboy, let me assure you that just
> the opposite is true. I run all Linux, but I consider it wrong to pay more
> than $100 for the box upon which I run Linux. That's why I'm all Raspberry
> Pi nowadays.
>
> But if you've paid Apple's exhorbitant fee to buy their hardware, then you
> might as well be running their OS.

Hahahah. Nah, never paid a penny. It was a "sponsorship" from Apple.
Top of the range kit at the time too. All I had to do was write fast
code and not insult them in public. Managed for several years.

Oh - my code ran faster under linux than OSX. The apple compiler seemed
to never want to use all 32 of the FP registers (and, more bizarrely,
the register it would mysteriously forget existed wasn't always the same
one). I later worked for Freescale and had access to their internal
tools, and could see how good or bad a job the various compilers were at
keeping the pipelines full, and it was clear that Apple weren't as smart
as they thought they were.

Phil
--
We are no longer hunters and nomads. No longer awed and frightened, as we have
gained some understanding of the world in which we live. As such, we can cast
aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/

Re: Wrecking a good thing? (Was: Piping to stdin)

<ubncuh$6v6k$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9928&group=comp.unix.programmer#9928

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Wrecking a good thing? (Was: Piping to stdin)
Date: Fri, 18 Aug 2023 11:17:04 +0200
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <ubncuh$6v6k$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<87o7j82gix.fsf@fatphil.org> <ubkt02$3o9rp$1@dont-email.me>
<87ttsxzxs7.fsf@fatphil.org> <ubl9nc$3md6c$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 18 Aug 2023 09:17:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="381304563337f5ecb99f8cbb76e1032f";
logging-data="228564"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UbjgzKH/pkXkrfA2Wnr8gnUHQlI3Y4Gw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:7VHV1HjQWM1GE2ZN54Jg40sZiPk=
Content-Language: en-GB
In-Reply-To: <ubl9nc$3md6c$1@news.xmission.com>
 by: David Brown - Fri, 18 Aug 2023 09:17 UTC

On 17/08/2023 16:09, Kenny McCormack wrote:
> In article <87ttsxzxs7.fsf@fatphil.org>,
> Phil Carmody <pc+usenet@asdf.org> wrote:
> ...
>>> ls: h*: No such file or directory
>>
>> That I didn't know. Wow - if that's an actual interactive session being
>> quoted, that's frightening. Thanks for reminding me why my installation
>> of linux on my Apple G5 box wasn't moment too soon. How can people live
>> with such wrongthink? Stockholm Syndrome?
>
> Kinda hate to disagree with ya there, but running Linux on Apple hardware
> is like buying a BMW, ripping out the engine, and changing it into a go-kart.
>
> Now, before you think I'm some Apple Fanboy, let me assure you that just
> the opposite is true. I run all Linux, but I consider it wrong to pay more
> than $100 for the box upon which I run Linux. That's why I'm all Raspberry
> Pi nowadays.
>
> But if you've paid Apple's exhorbitant fee to buy their hardware, then you
> might as well be running their OS. I don't want to have to dot all the I's
> and cross all the T's on this, but I assume you get what I mean. If you
> like Linux, you should not be paying Apple prices for your hardware.
>
> Or, to put it another way, Apple stuff (hardware and software) is for
> people who like that sort of thing. And they do indeed like it.
>

I disagree completely.

Apple made good quality hardware, with a style that many people like.
(I personally do not, and have never owned anything Apple.) Sure, you
pay a premium for it, but that's the case for a lot of hardware - if you
draw a graph of processor speed against processor price, you'll easily
see a point where you pay a lot of extra cash for a very small increase
in price. Yet for some people, that large increase is worth it.

So your Apple hardware might be twice the price for a 10% thinner and
lighter laptop. But if that's what you want, go for it - just as it is
fine to want far lower prices and accept slower or weaker hardware.

Then if someone decides that they want the Apple hardware, they've got
the money, they have no moral qualms about paying the high markup Apple
charges (some people have strong opinions about that kind of thing),
that's fine - they've bought the Apple hardware.

And if they decide that they prefer Linux (or Windows) to MacOS, then
installing their preferred system makes the system better - it increases
the value to them. It would be absurd to use an OS that is inferior (at
least in that person's view) just because they had paid for it! You
would not expect a Linux fan to use the Windows installation that comes
with most off-the-shelf PC's - why would you expect them to use MacOS ?

Case in point - Linus Torvalds used a MacBook running Linux as his main
PC for a while, because the hardware (the screen in particular) was
better than alternative laptops.

Re: Piping to stdin

<ubndk1$71ua$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9929&group=comp.unix.programmer#9929

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Fri, 18 Aug 2023 11:28:33 +0200
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <ubndk1$71ua$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au> <ubg25m$2rr3g$1@dont-email.me>
<ubg4no$8kb$1@milena.home.net.it> <ubg6o7$3jrsn$1@news.xmission.com>
<ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me>
<87o7j82gix.fsf@fatphil.org> <ubkt02$3o9rp$1@dont-email.me>
<20230817065027.422@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 18 Aug 2023 09:28:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="381304563337f5ecb99f8cbb76e1032f";
logging-data="231370"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/B4CBtm+P7lx4l04uQy8UhLNIrp1MvHSk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:urEA2cj6JRutNZIzQI/yu8RzNWk=
Content-Language: en-GB
In-Reply-To: <20230817065027.422@kylheku.com>
 by: David Brown - Fri, 18 Aug 2023 09:28 UTC

On 17/08/2023 15:52, Kaz Kylheku wrote:
> On 2023-08-17, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
>> Any character from 0-255 is allowed in unix filenames but only an idiot would
>> use spaces and non printing characters.

Only an idiot would think one rule fits all use-cases.

>
> That's simply false. 0 is the null terminator and is not actually part
> of the name. The path-component-separating slash cannot be contained in
> a path component; there is no escape mechanism to include it.
>
> POSIX defines a set of characters which are recommended for use in file
> names for portability; it is wise for applications and users to stick to
> that.
>

It is even wiser to use characters that are appropriate for the task in
hand.

If you are making software that will be shared amongst a wide variety of
systems, stick to ASCII letters, digits, and underscore - that will work
on everything, including Windows.

If you are writing a document in Thai that will be read by Thai speakers
on Thai computers, name the document in Thai using Thai script.

It's not hard to handle "complicated" filenames from the command line,
outside a few pathological cases (like "-"). Sensible filenames are
fine, even with spaces, brackets, or non-ASCII letters. If those
features are helpful to the main use of the names for the files in
question, use them. If they are unhelpful, don't use them.

Thus it makes sense to avoid inconvenient characters in the names and
paths of programs, and you'll very rarely want them in program source
code names or directories. But they are common and useful for things
like document filenames.

Re: Piping to stdin

<87wmxr9v9l.fsf@fatphil.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9934&group=comp.unix.programmer#9934

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pc+use...@asdf.org (Phil Carmody)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Sat, 19 Aug 2023 13:33:26 +0300
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <87wmxr9v9l.fsf@fatphil.org>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org>
<ubkt02$3o9rp$1@dont-email.me> <87v8dde6j3.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="532b4e497655feb7d6e77642e85bd4ce";
logging-data="821246"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sBdPXEyGG/5qMrjiCqKkV"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:nvAtb7x8jTkQEJ/4JkbLgBX4PdA=
sha1:MkEEP4B7dQw1QEwCPktbK5FQqgU=
 by: Phil Carmody - Sat, 19 Aug 2023 10:33 UTC

Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
> Some file systems (depending on mount options) can have complex rules
> such as rejecting any name with an invalid UTF-8 sequence.

Oooh, now I'm tempted to name files in Latin-1, to deliberately break
filesystems that make such assumptions!

Phil
--
We are no longer hunters and nomads. No longer awed and frightened, as we have
gained some understanding of the world in which we live. As such, we can cast
aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/

Re: Piping to stdin

<ubqf9k$r2ol$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9935&group=comp.unix.programmer#9935

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: oguzisma...@gmail.com (Oğuz)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Sat, 19 Aug 2023 16:15:32 +0300
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <ubqf9k$r2ol$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au> <ubg25m$2rr3g$1@dont-email.me>
<ubg4no$8kb$1@milena.home.net.it> <ubg6o7$3jrsn$1@news.xmission.com>
<ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me>
<87o7j82gix.fsf@fatphil.org> <ubkt02$3o9rp$1@dont-email.me>
<87v8dde6j3.fsf@bsb.me.uk> <87wmxr9v9l.fsf@fatphil.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 19 Aug 2023 13:15:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2c2a0a4f3182506ff072ef599d326cf6";
logging-data="887573"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+CeYiEUM+gaazgReyLvmdypN6sM3OudD4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:YIc5/CNjz49CDdTz5AZOXmEWlHc=
Content-Language: en-US
In-Reply-To: <87wmxr9v9l.fsf@fatphil.org>
 by: Oğuz - Sat, 19 Aug 2023 13:15 UTC

On 8/19/23 1:33 PM, Phil Carmody wrote:
> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>> Some file systems (depending on mount options) can have complex rules
>> such as rejecting any name with an invalid UTF-8 sequence.
>
> Oooh, now I'm tempted to name files in Latin-1, to deliberately break
> filesystems that make such assumptions!
Be careful with that attitude. The "memory-safe" sudo replacement
doesn't support non-UTF-8 input either:

https://github.com/memorysafety/sudo-rs/issues/213

Re: Piping to stdin

<ubqkn7$skrr$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9936&group=comp.unix.programmer#9936

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Date: Sat, 19 Aug 2023 14:48:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <ubqkn7$skrr$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au> <ubg25m$2rr3g$1@dont-email.me>
<ubg4no$8kb$1@milena.home.net.it> <ubg6o7$3jrsn$1@news.xmission.com>
<ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me>
<87o7j82gix.fsf@fatphil.org> <ubkt02$3o9rp$1@dont-email.me>
<87v8dde6j3.fsf@bsb.me.uk> <87wmxr9v9l.fsf@fatphil.org>
<ubqf9k$r2ol$1@dont-email.me>
Injection-Date: Sat, 19 Aug 2023 14:48:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1d43f0aa88eeb6b065a9c586d80e864a";
logging-data="938875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xQ9DS8H4RUKwDXYMmXCFA"
Cancel-Lock: sha1:2E2umxBGX1c7r1QJeyprZwJn310=
 by: Mutt...@dastardlyhq.com - Sat, 19 Aug 2023 14:48 UTC

On Sat, 19 Aug 2023 16:15:32 +0300
=?UTF-8?B?T8SfdXo=?= <oguzismailuysal@gmail.com> wrote:
>On 8/19/23 1:33 PM, Phil Carmody wrote:
>> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>>> Some file systems (depending on mount options) can have complex rules
>>> such as rejecting any name with an invalid UTF-8 sequence.
>>
>> Oooh, now I'm tempted to name files in Latin-1, to deliberately break
>> filesystems that make such assumptions!
>Be careful with that attitude. The "memory-safe" sudo replacement
>doesn't support non-UTF-8 input either:

Whats memory unsafe about sudo?

Re: Piping to stdin

<87v8davlg1.fsf@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9937&group=comp.unix.programmer#9937

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Followup: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: Re: Piping to stdin
Followup-To: comp.unix.programmer
Date: Sat, 19 Aug 2023 21:14:38 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <87v8davlg1.fsf@bsb.me.uk>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au>
<ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org>
<ubkt02$3o9rp$1@dont-email.me> <87v8dde6j3.fsf@bsb.me.uk>
<87wmxr9v9l.fsf@fatphil.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="3fc15511aac7d6a52e9762e8994bb691";
logging-data="1058273"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18m0sXSX43bBOAHfaGwiROdruueNEQA8JE="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:GAb+2l2vi/s8h1Wp+BnbF6jYE+U=
sha1:0FlnYpH32sFxZKuqAVLWmign3RY=
X-BSB-Auth: 1.1b6ef16e9e364dd6928e.20230819211438BST.87v8davlg1.fsf@bsb.me.uk
 by: Ben Bacarisse - Sat, 19 Aug 2023 20:14 UTC

Phil Carmody <pc+usenet@asdf.org> writes:

> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>> Some file systems (depending on mount options) can have complex rules
>> such as rejecting any name with an invalid UTF-8 sequence.
>
> Oooh, now I'm tempted to name files in Latin-1, to deliberately break
> filesystems that make such assumptions!

Why?

--
Ben.

Re: Piping to stdin

<ubrs7b$16mna$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9941&group=comp.unix.programmer#9941

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kal...@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.unix.programmer
Subject: Re: Piping to stdin
Date: Sun, 20 Aug 2023 02:02:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Sender: <untosten@0.0.0.0>
Message-ID: <ubrs7b$16mna$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au> <ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it> <ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org> <ubkt02$3o9rp$1@dont-email.me> <87v8dde6j3.fsf@bsb.me.uk> <87wmxr9v9l.fsf@fatphil.org> <87v8davlg1.fsf@bsb.me.uk>
Injection-Date: Sun, 20 Aug 2023 02:02:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e11c8eef08cca541ec10598fcaf7e421";
logging-data="1268458"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HloPbEXDCWJ3ZMtdnFM0OjVdiVhoB9DY="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.4.11-200.fc38.x86_64 (x86_64))
Cancel-Lock: sha1:DH1w2qsHKVvXpV30w5Rn0Uuw3R0=
 by: Kalevi Kolttonen - Sun, 20 Aug 2023 02:02 UTC

In comp.unix.programmer Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
> Phil Carmody <pc+usenet@asdf.org> writes:
>
>> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>>> Some file systems (depending on mount options) can have complex rules
>>> such as rejecting any name with an invalid UTF-8 sequence.
>>
>> Oooh, now I'm tempted to name files in Latin-1, to deliberately break
>> filesystems that make such assumptions!
>
> Why?

I suppose that was some kind of a joke.

Anyway, one cannot "break" those filesystems as the
invalid names are simply rejected. I am not 100%
sure but ZFS might be an instance of such a filesystem.

br,
KK

Re: Piping to stdin

<y%rEM.716067$AsA.587368@fx18.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9944&group=comp.unix.programmer#9944

  copy link   Newsgroups: comp.unix.programmer 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!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.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: Piping to stdin
Newsgroups: comp.unix.programmer,comp.lang.c
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <vo5rqj-lpl.ln1@paranoia.mcleod-schmidt.id.au> <ubg25m$2rr3g$1@dont-email.me> <ubg4no$8kb$1@milena.home.net.it> <ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me> <87o7j82gix.fsf@fatphil.org> <ubkt02$3o9rp$1@dont-email.me> <87v8dde6j3.fsf@bsb.me.uk> <87wmxr9v9l.fsf@fatphil.org> <ubqf9k$r2ol$1@dont-email.me> <ubqkn7$skrr$1@dont-email.me>
Lines: 16
Message-ID: <y%rEM.716067$AsA.587368@fx18.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sun, 20 Aug 2023 17:24:46 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sun, 20 Aug 2023 17:24:46 GMT
X-Received-Bytes: 1820
 by: Scott Lurndal - Sun, 20 Aug 2023 17:24 UTC

Muttley@dastardlyhq.com writes:
>On Sat, 19 Aug 2023 16:15:32 +0300
>=?UTF-8?B?T8SfdXo=?= <oguzismailuysal@gmail.com> wrote:
>>On 8/19/23 1:33 PM, Phil Carmody wrote:
>>> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>>>> Some file systems (depending on mount options) can have complex rules
>>>> such as rejecting any name with an invalid UTF-8 sequence.
>>>
>>> Oooh, now I'm tempted to name files in Latin-1, to deliberately break
>>> filesystems that make such assumptions!
>>Be careful with that attitude. The "memory-safe" sudo replacement
>>doesn't support non-UTF-8 input either:
>
>Whats memory unsafe about sudo?
>
https://www.cisa.gov/news-events/alerts/2021/02/02/sudo-heap-based-buffer-overflow-vulnerability-cve-2021-3156


devel / comp.unix.programmer / Re: Piping to stdin

Pages:1234
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor