Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #140: LBNC (luser brain not connected)


comp / comp.unix.programmer / Re: Long filenames in DOS/Windows and Unix/Linux

SubjectAuthor
* Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)Kenny McCormack
+* Re: Long filenames in DOS/Windows and Unix/LinuxRichard Kettlewell
|+- Re: Long filenames in DOS/Windows and Unix/LinuxMuttley
|`* Re: Long filenames in DOS/Windows and Unix/LinuxLawrence D'Oliveiro
| +* Re: Long filenames in DOS/Windows and Unix/LinuxLawrence D'Oliveiro
| |+- Re: Long filenames in DOS/Windows and Unix/LinuxNuno Silva
| |+- Re: Long filenames in DOS/Windows and Unix/LinuxHelmut Waitzmann
| |+* Re: Long filenames in DOS/Windows and Unix/LinuxWayne
| ||`- Re: Long filenames in DOS/Windows and Unix/LinuxLawrence D'Oliveiro
| |`- Re: Long filenames in DOS/Windows and Unix/LinuxJanis Papanagnou
| `- Arbitrary characters in filenames (was: Long filenames in DOS/Windows and Unix/LHelmut Waitzmann
+* Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)Muttley
|`* Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)John Ames
| +* Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)Scott Lurndal
| |`- Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)Lew Pitcher
| +* Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)Kenny McCormack
| |`* Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping toMuttley
| | `* User surveys (Was: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to)Kenny McCormack
| |  `- Re: User surveys (Was: Long filenames in DOS/Windows and Unix/Linux (Was: PipingMuttley
| +* Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)Kaz Kylheku
| |`* Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)John Ames
| | +* Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)Kaz Kylheku
| | |`* Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)John Ames
| | | +* Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)Scott Lurndal
| | | |`- Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)Lawrence D'Oliveiro
| | | `* Re: Long filenames in DOS/Windows and Unix/LinuxKeith Thompson
| | |  +* Re: Long filenames in DOS/Windows and Unix/LinuxLawrence D'Oliveiro
| | |  |+- Re: Long filenames in DOS/Windows and Unix/LinuxScott Lurndal
| | |  |`* Re: Long filenames in DOS/Windows and Unix/LinuxKeith Thompson
| | |  | +* Re: Long filenames in DOS/Windows and Unix/LinuxLawrence D'Oliveiro
| | |  | |+* Re: Long filenames in DOS/Windows and Unix/LinuxKeith Thompson
| | |  | ||`* Re: Long filenames in DOS/Windows and Unix/LinuxLawrence D'Oliveiro
| | |  | || `* Re: Long filenames in DOS/Windows and Unix/LinuxKeith Thompson
| | |  | ||  `- Re: Long filenames in DOS/Windows and Unix/LinuxLawrence D'Oliveiro
| | |  | |`* Re: Long filenames in DOS/Windows and Unix/LinuxRalf Fassel
| | |  | | `* Re: Long filenames in DOS/Windows and Unix/LinuxKeith Thompson
| | |  | |  `* Re: Long filenames in DOS/Windows and Unix/LinuxNuno Silva
| | |  | |   `* Always use "--" (Was: Long filenames in DOS/Windows and Unix/Linux)Kenny McCormack
| | |  | |    `* Re: Always use "--" (Was: Long filenames in DOS/Windows and Unix/Linux)Lew Pitcher
| | |  | |     +- Re: Always use "--" (Was: Long filenames in DOS/Windows and Unix/Linux)Lawrence D'Oliveiro
| | |  | |     `* Re: Always use "--" (Was: Long filenames in DOS/Windows and Unix/Linux)Kaz Kylheku
| | |  | |      `- Re: Always use "--" (Was: Long filenames in DOS/Windows and Unix/Linux)Lew Pitcher
| | |  | `- Re: Long filenames in DOS/Windows and Unix/LinuxTim Rentsch
| | |  +* Re: Long filenames in DOS/Windows and Unix/LinuxKaz Kylheku
| | |  |+* Re: Long filenames in DOS/Windows and Unix/LinuxKeith Thompson
| | |  ||`* Re: Long filenames in DOS/Windows and Unix/LinuxLawrence D'Oliveiro
| | |  || `* Re: Long filenames in DOS/Windows and Unix/LinuxKeith Thompson
| | |  ||  +* Re: Long filenames in DOS/Windows and Unix/LinuxLawrence D'Oliveiro
| | |  ||  |`* Re: Long filenames in DOS/Windows and Unix/LinuxKeith Thompson
| | |  ||  | +- Re: Long filenames in DOS/Windows and Unix/LinuxLawrence D'Oliveiro
| | |  ||  | `- Re: Long filenames in DOS/Windows and Unix/LinuxNuno Silva
| | |  ||  `- Re: Long filenames in DOS/Windows and Unix/LinuxKaz Kylheku
| | |  |`* Re: Long filenames in DOS/Windows and Unix/LinuxJohn Ames
| | |  | `- Re: Long filenames in DOS/Windows and Unix/LinuxMuttley
| | |  `* Re: Long filenames in DOS/Windows and Unix/LinuxRichard Kettlewell
| | |   `* Re: Long filenames in DOS/Windows and Unix/LinuxRalf Fassel
| | |    +* Re: Long filenames in DOS/Windows and Unix/LinuxRichard Kettlewell
| | |    |`* Re: Long filenames in DOS/Windows and Unix/Linuxcandycanearter07
| | |    | `- Word splitting oddities (Was: Long filenames in DOS/Windows and Unix/Linux)Kenny McCormack
| | |    `- Re: Long filenames in DOS/Windows and Unix/LinuxJanis Papanagnou
| | `- Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)Janis Papanagnou
| `- Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping toMuttley
`- Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)Marcel Mueller

Pages:123
Subject: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: Kenny McCormack
Newsgroups: comp.unix.programmer
Organization: The official candy of the new Millennium
Date: Sat, 31 Aug 2024 05:57 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer
Subject: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
Date: Sat, 31 Aug 2024 05:57:12 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vaubbo$1d324$1@news.xmission.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me>
Injection-Date: Sat, 31 Aug 2024 05:57:12 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1477700"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <ubg8a8$2t20l$1@dont-email.me>, <Muttley@dastardlyhq.com> wrote:
>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.
>

(I happened to be re-reading this 1 year old thread, so thought I'd add a
post to it)

Two comments about spaces in filenames (and Windows vs. Unix):

1) Windows is actually quite a bit more restrictive about characters in
filenames than Unix. Which is a good thing. I've always thought
the "anything other than NUL and /" in Unix was a bad thing and
encouraged all manner of bad/malicious outcomes. Yet, there are
people (and I use the term loosely) who think otherwise.

2) Spaces in filenames are pretty much a necessity from the end-user
POV (but see below). Yes, it makes things hard for us on the admin
side of the game. I have always thought that the right answer is
to have both - a short name that is usable for the admin side of
the game and a long label that the user can work with. There are
two solutions of this nature that I like:
a) The "Extend a name" idea. Where you have short names at the
filesystem level, but then have a database linked to that
that allows the user to think that long, descriptive
filenames are supported.

A long long time ago, there was a DOS product called
"Extend a name" that did this. Also, 4DOS (and later
versions) does this.
b) The way VFAT does it (and NTFS emulates) - where, for any
file with a long name, there is an 8.3 filename (usually
with weird characters in the filename) as well, and either
filename is usable by programs. This is one place where I
think Windows really gets it right (and Unix could learn
from it).

--
He continues to assert that 2 plus 2 equals 4, despite being repeatedly
told otherwise.

Subject: Re: Long filenames in DOS/Windows and Unix/Linux
From: Richard Kettlewell
Newsgroups: comp.unix.programmer
Organization: terraraq NNTP server
Date: Sat, 31 Aug 2024 08:27 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Date: Sat, 31 Aug 2024 09:27:44 +0100
Organization: terraraq NNTP server
Message-ID: <wwv34mlm70f.fsf@LkoBDZeT.terraraq.uk>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="42877"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:em/GJOIsRdOhHWJQJ38MarBnkWY=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
View all headers

gazelle@shell.xmission.com (Kenny McCormack) writes:
> Two comments about spaces in filenames (and Windows vs. Unix):
>
> 1) Windows is actually quite a bit more restrictive about characters in
> filenames than Unix. Which is a good thing. I've always thought
> the "anything other than NUL and /" in Unix was a bad thing and
> encouraged all manner of bad/malicious outcomes. Yet, there are
> people (and I use the term loosely) who think otherwise.

The historical advantage of the free-for-all Unix approach is that
allowed flexibility in filename encoding. Today it’d work to say “UTF-8
only” (and maybe other restrictions) but that wasn’t always the case.
The original design has saved us from a bit of path dependency.

In the application-facing API (open, CreateFile, etc), the rule pretty
much has to be ‘anything goes’, because you may be dealing with a
‘foreign’ filesystem (e.g. via a network filesystem). I don’t want to be
unable to access an existing file just because two computers have
different sets of restrictions on filenames.

(I’ll be disappointed in extreme cases of course, e.g. filesystems that
permit ‘/’ in filenames, but the scale of the problem can be minimized.)

> 2) Spaces in filenames are pretty much a necessity from the end-user
> POV (but see below). Yes, it makes things hard for us on the admin
> side of the game.

I think the thing that makes it hard is not the spaces as such, but the
tooling that makes it inconvenient to handle them, which primarily means
Bourne shell parsing rules. The problem basically ceases to exist once
you’re outside the shell ecosystem.

The rest of Unix has evolved substantially since the 1970s but shell is
still stuck in this particular trap. It’s like we’re still making making
arrowheads out of flint but everything else from steel.

--
https://www.greenend.org.uk/rjk/

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Sat, 31 Aug 2024 08:37 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
Date: Sat, 31 Aug 2024 08:37:01 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vauknd$uvji$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
Injection-Date: Sat, 31 Aug 2024 10:37:02 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="505150aa1191500ac8748e59d84a8d4d";
logging-data="1015410"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+UUrLwISjMarFYLFZvp3d"
Cancel-Lock: sha1:lfC8Wjo5owKwcG8iuso5MbBJ5m0=
View all headers

On Sat, 31 Aug 2024 05:57:12 -0000 (UTC)
gazelle@shell.xmission.com (Kenny McCormack) gabbled:
> 2) Spaces in filenames are pretty much a necessity from the end-user

No they're not.

> b) The way VFAT does it (and NTFS emulates) - where, for any
> file with a long name, there is an 8.3 filename (usually
> with weird characters in the filename) as well, and either
> filename is usable by programs. This is one place where I
> think Windows really gets it right (and Unix could learn
> from it).

No, just no. The windows "solution" is a hideous hack only required for
backwards compatability.

Subject: Re: Long filenames in DOS/Windows and Unix/Linux
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Sat, 31 Aug 2024 08:39 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Date: Sat, 31 Aug 2024 08:39:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vaukrp$v06l$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<wwv34mlm70f.fsf@LkoBDZeT.terraraq.uk>
Content-Type: text/plain; charset=utf-8
Injection-Date: Sat, 31 Aug 2024 10:39:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="505150aa1191500ac8748e59d84a8d4d";
logging-data="1016021"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rJt0Yc3/z8ElUY3MJUjp9"
Cancel-Lock: sha1:Xg9cF2igLszMcET2rEjLQfYzY90=
View all headers

On Sat, 31 Aug 2024 09:27:44 +0100
Richard Kettlewell <invalid@invalid.invalid> gabbled:
>gazelle@shell.xmission.com (Kenny McCormack) writes:
>> 2) Spaces in filenames are pretty much a necessity from the end-user
>> POV (but see below). Yes, it makes things hard for us on the admin
>> side of the game.
>
>I think the thing that makes it hard is not the spaces as such, but the
>tooling that makes it inconvenient to handle them, which primarily means
>Bourne shell parsing rules. The problem basically ceases to exist once
>you’re outside the shell ecosystem.
>
>The rest of Unix has evolved substantially since the 1970s but shell is
>still stuck in this particular trap. It’s like we’re still making making
>arrowheads out of flint but everything else from steel.
>

When parsing is based around words on a line how else exactly would you expect
it to be done? Every language tokenises based in seperators so unless you
expect the shell to automagically figure out when a filename ends and the next
part of the command begins then I would suggest using quotes is a solution
thats worked for decades and works fine.

Subject: Re: Long filenames in DOS/Windows and Unix/Linux
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer, comp.unix.shell
Organization: A noiseless patient Spider
Date: Sat, 31 Aug 2024 23:34 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer,comp.unix.shell
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Date: Sat, 31 Aug 2024 23:34:22 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vb099u$162j5$10@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<wwv34mlm70f.fsf@LkoBDZeT.terraraq.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 01 Sep 2024 01:34:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="451ad815162a3f3080e1cdc6c6433f29";
logging-data="1247845"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194vuGmY33cLunyz/M8tERG"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:88eOsKaJzysOfisUBgL9sLFcRPY=
View all headers

On Sat, 31 Aug 2024 09:27:44 +0100, Richard Kettlewell wrote:

> (I’ll be disappointed in extreme cases of course, e.g. filesystems that
> permit ‘/’ in filenames, but the scale of the problem can be minimized.)

The nice thing about Unicode is the alternatives it offers: so you can’t
use “/” in a filename, but you can use “∕” instead.

> I think the thing that makes it hard is not the spaces as such, but the
> tooling that makes it inconvenient to handle them, which primarily means
> Bourne shell parsing rules. The problem basically ceases to exist once
> you’re outside the shell ecosystem.
>
> The rest of Unix has evolved substantially since the 1970s but shell is
> still stuck in this particular trap. It’s like we’re still making making
> arrowheads out of flint but everything else from steel.

If you avoid newlines in filenames, Posix shells can cope with anything
else if you set “IFS=$'\n'”.

If you insist on wanting to accept those as well, then I don’t think Posix
is enough, but Bash does have facilities that help you cope.

Subject: Re: Long filenames in DOS/Windows and Unix/Linux
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer, comp.unix.shell
Organization: A noiseless patient Spider
Date: Sun, 1 Sep 2024 07:03 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer,comp.unix.shell
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Date: Sun, 1 Sep 2024 07:03:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <vb13k3$1dlt4$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<wwv34mlm70f.fsf@LkoBDZeT.terraraq.uk> <vb099u$162j5$10@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 01 Sep 2024 09:03:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="451ad815162a3f3080e1cdc6c6433f29";
logging-data="1496996"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Vo5O3SjPvx4/ckNorECjs"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:1sF2ha5YF+opzPPQLvguaTyTWfg=
View all headers

I wrote:

> If you avoid newlines in filenames, Posix shells can cope with anything
> else if you set “IFS=$'\n'”.

Sorry, no, it looks like the “$'...'” syntax for string literals is not
from Posix, it’s a Bash-ism.

I think it’s still possible to assign a newline to $IFS, it just takes a
bit more work.

Subject: Re: Long filenames in DOS/Windows and Unix/Linux
From: Nuno Silva
Newsgroups: comp.unix.programmer, comp.unix.shell
Organization: A noiseless patient Spider
Date: Sun, 1 Sep 2024 08:10 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nunojsilva@invalid.invalid (Nuno Silva)
Newsgroups: comp.unix.programmer,comp.unix.shell
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Date: Sun, 01 Sep 2024 09:10:00 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <vb17gp$1e0k4$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<wwv34mlm70f.fsf@LkoBDZeT.terraraq.uk> <vb099u$162j5$10@dont-email.me>
<vb13k3$1dlt4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 01 Sep 2024 10:10:02 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ce9e0a1b9b573508705b33b9cce3af85";
logging-data="1507972"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187sPvjRG//4dD5u0q/vI7X"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Cancel-Lock: sha1:87nwvGQYz5wdktJoZmU/4IEHyNI=
View all headers

On 2024-09-01, Lawrence D'Oliveiro wrote:

> I wrote:
>
>> If you avoid newlines in filenames, Posix shells can cope with anything
>> else if you set “IFS=$'\n'”.
>
> Sorry, no, it looks like the “$'...'” syntax for string literals is not
> from Posix, it’s a Bash-ism.
>
> I think it’s still possible to assign a newline to $IFS, it just takes a
> bit more work.

Perhaps using the printf utility? It is in IEEE 1003.1 (p3049 in -2008).

--
Nuno Silva

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: Marcel Mueller
Newsgroups: comp.unix.programmer
Organization: MB-NET.NET for Open-News-Network e.V.
Date: Sun, 1 Sep 2024 09:44 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.mb-net.net!open-news-network.org!.POSTED!not-for-mail
From: news.5.maazl@spamgourmet.org (Marcel Mueller)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to
stdin)
Date: Sun, 1 Sep 2024 11:44:16 +0200
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <vb1d1h$chc$2@gwaiyur.mb-net.net>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 1 Sep 2024 09:44:17 -0000 (UTC)
Injection-Info: gwaiyur.mb-net.net;
logging-data="12844"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:LkNFwOINov+qGnjv+JyRvyHV+Rc= sha256:Fe2psHRO/fLSZduc4V3XTvsBus1pv+a9LWejYjAN3bo=
sha1:K2UZBXFfU+bQn4e6sjD9BK7HuqI= sha256:80wJqwXFOdT6S7BtK5d0sp87JSspqtdHylHSXN0E0Gk=
Content-Language: en-US
In-Reply-To: <vaubbo$1d324$1@news.xmission.com>
View all headers

Am 31.08.24 um 07:57 schrieb Kenny McCormack:
> 2) Spaces in filenames are pretty much a necessity from the end-user
> POV (but see below). Yes, it makes things hard for us on the admin
> side of the game. I have always thought that the right answer is
> to have both - a short name that is usable for the admin side of
> the game and a long label that the user can work with. There are
> two solutions of this nature that I like:
> a) The "Extend a name" idea. Where you have short names at the
> filesystem level, but then have a database linked to that
> that allows the user to think that long, descriptive
> filenames are supported.
>
> A long long time ago, there was a DOS product called
> "Extend a name" that did this. Also, 4DOS (and later
> versions) does this.

OS/2 also had the "display file name" approach for invalid file names.

> b) The way VFAT does it (and NTFS emulates) - where, for any
> file with a long name, there is an 8.3 filename (usually
> with weird characters in the filename) as well, and either
> filename is usable by programs. This is one place where I
> think Windows really gets it right (and Unix could learn
> from it).
>

In fact both variants caused at least as much problems as they solved.

First of all the relation between the two file names is usually lost, if
a system that is not aware of them is used to move or copy a file.

Secondly the raw file names in the backend can cause significant false
positives with wildcard matching. E.g. when you delete *2.txt it is
likely that a bunch of mangled file names match too.

Last but not least sometimes the display file name is used to translate
system folder names into the users language. Besides the false positive
problem this makes it difficult to find the raw name for the user.
(Of course, translated system folders like "Programme" or
"Arbeitsoberfläche" caused other problems.)

At the end I always disabled the two file mane approach wherever
possible. (NTFS, Samba ...)
If an old OS is not aware of accessing certain file names, it should not
be used for this kind of data.

Marcel

Subject: Re: Long filenames in DOS/Windows and Unix/Linux
From:
Newsgroups: comp.unix.programmer, comp.unix.shell
Followup: comp.unix.shell
Organization: A noiseless patient Spider
Date: Sun, 1 Sep 2024 17:51 UTC
References: 1 2 3 4 5 6 7 8
Newsgroups: comp.unix.programmer,comp.unix.shell
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Followup-To: comp.unix.shell
Date: Sun, 01 Sep 2024 19:51:09 +0200
Organization: A noiseless patient Spider
Lines: 23
Sender: Helmut Waitzmann <12f7e638@mail.de>
Message-ID: <83o7575kky.fsf@helmutwaitzmann.news.arcor.de>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<wwv34mlm70f.fsf@LkoBDZeT.terraraq.uk> <vb099u$162j5$10@dont-email.me>
<vb13k3$1dlt4$1@dont-email.me>
Reply-To: Helmut Waitzmann Anti-Spam-Ticket.b.qc3c <oe.throttle@xoxy.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Injection-Date: Sun, 01 Sep 2024 20:00:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="aae5eebb50989d3189dd1b35e01d45d1";
logging-data="1669391"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/yK96aHC3KC3mip5hnbD05S74khrWQH+E="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:fUVMop/otebIS87y6nSgyjTqN0Q=
sha1:IT8t2qaqztVr10MKTLp2e5y8WO8=
Mail-Reply-To: Helmut Waitzmann Anti-Spam-Ticket.b.qc3c <oe.throttle@xoxy.net>
Mail-Copies-To: nobody
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid>:
> I wrote:
>
>> If you avoid newlines in filenames, Posix shells can cope with
>> anything else if you set “IFS=$'\n'”.
>>
>
> Sorry, no, it looks like the “$'...'” syntax for string literals
> is not from Posix, it’s a Bash-ism.
>
>
> I think it’s still possible to assign a newline to $IFS, it just
> takes a bit more work.
>

newline="$( printf '%b.' '\n' )" && newline="${newline%?}"

As this is a problem with the shell, I suggest Followup-To
"comp.unix.shell"

Subject: Arbitrary characters in filenames (was: Long filenames in DOS/Windows and Unix/Linux)
From: Helmut Waitzmann
Newsgroups: comp.unix.programmer, comp.unix.shell
Followup: comp.unix.shell
Organization: A noiseless patient Spider
Date: Sun, 1 Sep 2024 18:06 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nn.throttle@xoxy.net (Helmut Waitzmann)
Newsgroups: comp.unix.programmer,comp.unix.shell
Subject: Arbitrary characters in filenames (was: Long filenames in DOS/Windows and Unix/Linux)
Followup-To: comp.unix.shell
Date: Sun, 01 Sep 2024 20:06:17 +0200
Organization: A noiseless patient Spider
Lines: 51
Sender: Helmut Waitzmann <12f7e638@mail.de>
Message-ID: <83jzfv5jvq.fsf_-_@helmutwaitzmann.news.arcor.de>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<wwv34mlm70f.fsf@LkoBDZeT.terraraq.uk> <vb099u$162j5$10@dont-email.me>
Reply-To: Helmut Waitzmann Anti-Spam-Ticket.b.qc3c <oe.throttle@xoxy.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Injection-Date: Sun, 01 Sep 2024 20:14:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="aae5eebb50989d3189dd1b35e01d45d1";
logging-data="1672933"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lScO/NqeEC7cZJnIDv4tMN2BIIP2d7q8="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:lR2aOf2r6MMqxsdTKazg4+36JyM=
sha1:PvxpnIk6nZvfNiSi1btvsgr9O74=
Mail-Reply-To: Helmut Waitzmann Anti-Spam-Ticket.b.qc3c <oe.throttle@xoxy.net>
Mail-Copies-To: nobody
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid>:
> On Sat, 31 Aug 2024 09:27:44 +0100, Richard Kettlewell wrote:
>
>> I think the thing that makes it hard is not the spaces as such,
>> but the tooling that makes it inconvenient to handle them,
>> which primarily means Bourne shell parsing rules. The problem
>> basically ceases to exist once you’re outside the shell
>> ecosystem.
>>
>>
>> The rest of Unix has evolved substantially since the 1970s but
>> shell is still stuck in this particular trap. It’s like we’re
>> still making making arrowheads out of flint but everything else
>> from steel.
>>
>
> If you avoid newlines in filenames, Posix shells can cope with
> anything else if you set “IFS=$'\n'”.
>
>
> If you insist on wanting to accept those as well, then I don’t
> think Posix is enough, but Bash does have facilities that help
> you cope.
>

If one wants to cope with any character (including newline
characters) in the POSIX shell's command line, one could make use
of the apostroph quoting mechanism.

If one wants to process arbitrary (may be generated) lists of
filenames, one could make use of the "xargs" utility with option
"-0".

To generate those lists of filenames, there are

find ... -print0

and

printf '%s\0' ...

available.

Followup-To: comp.unix.shell

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: John Ames
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 15:44 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: commodorejohn@gmail.com (John Ames)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to
stdin)
Date: Tue, 3 Sep 2024 08:44:40 -0700
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <20240903084440.0000663d@gmail.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com>
<ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me>
<vaubbo$1d324$1@news.xmission.com>
<vauknd$uvji$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 03 Sep 2024 17:44:45 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a2e5b8ddea3ba1e643eb8f93ceed6eeb";
logging-data="3514621"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jF/SsMG6t6v3r06N4q1VN3D5MfZd4BmQ="
Cancel-Lock: sha1:QZ8QFNC3V48+nixkYZyeg93FzNs=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
View all headers

On Sat, 31 Aug 2024 08:37:01 -0000 (UTC)
Muttley@dastardlyhq.com wrote:

> On Sat, 31 Aug 2024 05:57:12 -0000 (UTC)
> gazelle@shell.xmission.com (Kenny McCormack) gabbled:
> > 2) Spaces in filenames are pretty much a necessity from the
> > end-user
>
> No they're not.

WhoNeedsSpacesWhenYouCanJustCapitalizeEveryWordAsAVisualSignifierAmIRight
or-alternatively-make-liberal-use-of-dashes
or_use_underscores_like_some_deranged_freak

Very readable and not at *all* weird or clunky!

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: Scott Lurndal
Newsgroups: comp.unix.programmer
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 3 Sep 2024 15:47 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!peer03.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: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
Newsgroups: comp.unix.programmer
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com> <vauknd$uvji$1@dont-email.me> <20240903084440.0000663d@gmail.com>
Lines: 19
Message-ID: <fcGBO.3783$b8hf.2671@fx41.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Tue, 03 Sep 2024 15:47:23 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 03 Sep 2024 15:47:23 GMT
X-Received-Bytes: 1466
View all headers

John Ames <commodorejohn@gmail.com> writes:
>On Sat, 31 Aug 2024 08:37:01 -0000 (UTC)
>Muttley@dastardlyhq.com wrote:
>
>> On Sat, 31 Aug 2024 05:57:12 -0000 (UTC)
>> gazelle@shell.xmission.com (Kenny McCormack) gabbled:
>> > 2) Spaces in filenames are pretty much a necessity from the
>> > end-user
>>
>> No they're not.
>
>WhoNeedsSpacesWhenYouCanJustCapitalizeEveryWordAsAVisualSignifierAmIRight
>or-alternatively-make-liberal-use-of-dashes
>or_use_underscores_like_some_deranged_freak
>
>Very readable and not at *all* weird or clunky!
>

Perhaps Dennis had it right with a 14-character maximum filename :-)

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: Lew Pitcher
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 15:54 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to
stdin)
Date: Tue, 3 Sep 2024 15:54:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <vb7bgi$3bl1v$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<vauknd$uvji$1@dont-email.me> <20240903084440.0000663d@gmail.com>
<fcGBO.3783$b8hf.2671@fx41.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 03 Sep 2024 17:54:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2ae9290fa7b0bea5dd171b1fd08144e7";
logging-data="3527743"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8dooOJD8Nz3mZjHDni58JXm6O5etqHXY="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:T3qvWi8FGkwny9XgLg3XZrFlOS8=
View all headers

On Tue, 03 Sep 2024 15:47:23 +0000, Scott Lurndal wrote:

> John Ames <commodorejohn@gmail.com> writes:
>>On Sat, 31 Aug 2024 08:37:01 -0000 (UTC)
>>Muttley@dastardlyhq.com wrote:
>>
>>> On Sat, 31 Aug 2024 05:57:12 -0000 (UTC)
>>> gazelle@shell.xmission.com (Kenny McCormack) gabbled:
>>> > 2) Spaces in filenames are pretty much a necessity from the
>>> > end-user
>>>
>>> No they're not.
>>
>>WhoNeedsSpacesWhenYouCanJustCapitalizeEveryWordAsAVisualSignifierAmIRight
>>or-alternatively-make-liberal-use-of-dashes
>>or_use_underscores_like_some_deranged_freak
>>
>>Very readable and not at *all* weird or clunky!
>>
>
> Perhaps Dennis had it right with a 14-character maximum filename :-)

Only because space was tight on those early disk drives, and they
only allocated 16 bytes for each directory entry (2 bytes inode#,
14 bytes filename).

:-)

--
Lew Pitcher
"In Skills We Trust"

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: Kenny McCormack
Newsgroups: comp.unix.programmer
Organization: The official candy of the new Millennium
Date: Tue, 3 Sep 2024 16:10 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to
stdin)
Date: Tue, 3 Sep 2024 16:10:04 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vb7ccs$1hcps$1@news.xmission.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <vaubbo$1d324$1@news.xmission.com> <vauknd$uvji$1@dont-email.me> <20240903084440.0000663d@gmail.com>
Injection-Date: Tue, 3 Sep 2024 16:10:04 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1618748"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

In article <20240903084440.0000663d@gmail.com>,
John Ames <commodorejohn@gmail.com> wrote:
>On Sat, 31 Aug 2024 08:37:01 -0000 (UTC)
>Muttley@dastardlyhq.com wrote:
>
>> On Sat, 31 Aug 2024 05:57:12 -0000 (UTC)
>> gazelle@shell.xmission.com (Kenny McCormack) gabbled:
>> > 2) Spaces in filenames are pretty much a necessity from the
>> > end-user
>>
>> No they're not.
>
>WhoNeedsSpacesWhenYouCanJustCapitalizeEveryWordAsAVisualSignifierAmIRight
>or-alternatively-make-liberal-use-of-dashes
>or_use_underscores_like_some_deranged_freak
>
>Very readable and not at *all* weird or clunky!
>

I love this post.

Yeah, you got it exactly. Note that users really hate underscores. They
hate them as much as (or more than) we, the admins, love them. So, your
comment about "deranged freak" is spot on.

--
Elect a clown, expect a circus.

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: Kaz Kylheku
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 17:37 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to
stdin)
Date: Tue, 3 Sep 2024 17:37:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20240903103327.395@kylheku.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<vauknd$uvji$1@dont-email.me> <20240903084440.0000663d@gmail.com>
Injection-Date: Tue, 03 Sep 2024 19:37:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="009eeee9eb186b8e4806da932904b8ba";
logging-data="3603824"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wHgAltE92YZrhI6FZ9uvps/XGX3Ju+Sk="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:osLEYGY9/aUjO4ugXd1SQ/cmQaM=
View all headers

On 2024-09-03, John Ames <commodorejohn@gmail.com> wrote:
> On Sat, 31 Aug 2024 08:37:01 -0000 (UTC)
> Muttley@dastardlyhq.com wrote:
>
>> On Sat, 31 Aug 2024 05:57:12 -0000 (UTC)
>> gazelle@shell.xmission.com (Kenny McCormack) gabbled:
>> > 2) Spaces in filenames are pretty much a necessity from the
>> > end-user
>>
>> No they're not.
>
> WhoNeedsSpacesWhenYouCanJustCapitalizeEveryWordAsAVisualSignifierAmIRight
> or-alternatively-make-liberal-use-of-dashes
> or_use_underscores_like_some_deranged_freak

This is a strawman argument; filenamews should not only not have spaces,
but should be reasonably short. (No, not 8.3 short; that's not
"reasonably" and therefore another strawman.)

If we use spaces in your examples, the readability improves, but if you
have a directory of just half a dozen such names, you've got a paragraph
to read.

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

Subject: Re: Long filenames in DOS/Windows and Unix/Linux
From: Wayne
Newsgroups: comp.unix.programmer, comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 17:56 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wayne@nospam.invalid (Wayne)
Newsgroups: comp.unix.programmer,comp.unix.shell
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Date: Tue, 3 Sep 2024 13:56:08 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vb7ijo$3dn65$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<wwv34mlm70f.fsf@LkoBDZeT.terraraq.uk> <vb099u$162j5$10@dont-email.me>
<vb13k3$1dlt4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 03 Sep 2024 19:56:09 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="dd07c4d3c2216d9bc6571e157523e3c6";
logging-data="3595461"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XW1YoySC8TCJ8HPsnlKY6S7/INGntCmA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:84P/w3ckb6uGckjgydMpN/aFFn4=
Content-Language: en-US
In-Reply-To: <vb13k3$1dlt4$1@dont-email.me>
View all headers

On 9/1/2024 3:03 AM, Lawrence D'Oliveiro wrote:
> I wrote:
>
>> If you avoid newlines in filenames, Posix shells can cope with anything
>> else if you set “IFS=$'\n'”.
>
> Sorry, no, it looks like the “$'...'” syntax for string literals is not
> from Posix, it’s a Bash-ism.

Actually, dollar quotes were added to POSIX as of SUS Issue 8:

"2.2.4 Dollar-Single-Quotes
A sequence of characters starting with a <dollar-sign> immediately followed
by a single-quote ($') shall preserve the literal value of all characters up to
an unescaped terminating single-quote ('), with the exception of certain
<backslash>-escape sequences, as follows:
...."

<https://pubs.opengroup.org/onlinepubs/9799919799/>

--
Wayne

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: John Ames
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 18:39 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: commodorejohn@gmail.com (John Ames)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to
stdin)
Date: Tue, 3 Sep 2024 11:39:37 -0700
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <20240903113937.000008a3@gmail.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com>
<ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me>
<vaubbo$1d324$1@news.xmission.com>
<vauknd$uvji$1@dont-email.me>
<20240903084440.0000663d@gmail.com>
<20240903103327.395@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 03 Sep 2024 20:39:42 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a2e5b8ddea3ba1e643eb8f93ceed6eeb";
logging-data="3596859"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189M+6FI4g93h+M7SQWL7oveHJMSs1tCbY="
Cancel-Lock: sha1:NfgP+Rocb+RnpGjF5y7s+c1P2ME=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
View all headers

On Tue, 3 Sep 2024 17:37:21 -0000 (UTC)
Kaz Kylheku <643-408-1753@kylheku.com> wrote:

> On 2024-09-03, John Ames <commodorejohn@gmail.com> wrote:
> > On Sat, 31 Aug 2024 08:37:01 -0000 (UTC)
> > Muttley@dastardlyhq.com wrote:
> >
> >> On Sat, 31 Aug 2024 05:57:12 -0000 (UTC)
> >> gazelle@shell.xmission.com (Kenny McCormack) gabbled:
> >> > 2) Spaces in filenames are pretty much a necessity from the
> >> > end-user
> >>
> >> No they're not.
> >
> > WhoNeedsSpacesWhenYouCanJustCapitalizeEveryWordAsAVisualSignifierAmIRight
> > or-alternatively-make-liberal-use-of-dashes
> > or_use_underscores_like_some_deranged_freak
>
> This is a strawman argument; filenamews should not only not have
> spaces, but should be reasonably short. (No, not 8.3 short; that's not
> "reasonably" and therefore another strawman.)
>
> If we use spaces in your examples, the readability improves, but if
> you have a directory of just half a dozen such names, you've got a
> paragraph to read.

I'm unclear on how that qualifies as a straw-man argument...? Also, who
says that filenames should not, as a rule, contain spaces?

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: Kaz Kylheku
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 20:11 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to
stdin)
Date: Tue, 3 Sep 2024 20:11:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <20240903130000.933@kylheku.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<vauknd$uvji$1@dont-email.me> <20240903084440.0000663d@gmail.com>
<20240903103327.395@kylheku.com> <20240903113937.000008a3@gmail.com>
Injection-Date: Tue, 03 Sep 2024 22:11:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="009eeee9eb186b8e4806da932904b8ba";
logging-data="3644012"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18L1mmffoavLECU9I8+Vusgcx2Od+RvjQ8="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:J9D6lCk3UBVO/1qAMj9s0WMKGFw=
View all headers

On 2024-09-03, John Ames <commodorejohn@gmail.com> wrote:
> On Tue, 3 Sep 2024 17:37:21 -0000 (UTC)
> Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>
>> On 2024-09-03, John Ames <commodorejohn@gmail.com> wrote:
>> > On Sat, 31 Aug 2024 08:37:01 -0000 (UTC)
>> > Muttley@dastardlyhq.com wrote:
>> >
>> >> On Sat, 31 Aug 2024 05:57:12 -0000 (UTC)
>> >> gazelle@shell.xmission.com (Kenny McCormack) gabbled:
>> >> > 2) Spaces in filenames are pretty much a necessity from the
>> >> > end-user
>> >>
>> >> No they're not.
>> >
>> > WhoNeedsSpacesWhenYouCanJustCapitalizeEveryWordAsAVisualSignifierAmIRight
>> > or-alternatively-make-liberal-use-of-dashes
>> > or_use_underscores_like_some_deranged_freak
>>
>> This is a strawman argument; filenamews should not only not have
>> spaces, but should be reasonably short. (No, not 8.3 short; that's not
>> "reasonably" and therefore another strawman.)
>>
>> If we use spaces in your examples, the readability improves, but if
>> you have a directory of just half a dozen such names, you've got a
>> paragraph to read.
>
> I'm unclear on how that qualifies as a straw-man argument...?

Because it is based on a strawman interpretation of the "no spaces"
rule. That strawman interpretation is that there are no other rules
used in combination with the "no spaces" rule, and thus that any
ridiculous name is fine, just as long as it doesn't contain spaces.

And so, look how unreadable is this 100 character name in CamelCase!
Q.E.D. no spaces is a bad recommendation!

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

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: John Ames
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 20:25 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: commodorejohn@gmail.com (John Ames)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to
stdin)
Date: Tue, 3 Sep 2024 13:25:47 -0700
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <20240903132547.00000656@gmail.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com>
<ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me>
<vaubbo$1d324$1@news.xmission.com>
<vauknd$uvji$1@dont-email.me>
<20240903084440.0000663d@gmail.com>
<20240903103327.395@kylheku.com>
<20240903113937.000008a3@gmail.com>
<20240903130000.933@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 03 Sep 2024 22:25:52 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a2e5b8ddea3ba1e643eb8f93ceed6eeb";
logging-data="3650291"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zg0raKK8o/m+58SA/Sd09LxLUdESKB7Y="
Cancel-Lock: sha1:Ghfjyf6dE1RyHN/W4sxOol12UQI=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
View all headers

On Tue, 3 Sep 2024 20:11:28 -0000 (UTC)
Kaz Kylheku <643-408-1753@kylheku.com> wrote:

> Because it is based on a strawman interpretation of the "no spaces"
> rule. That strawman interpretation is that there are no other rules
> used in combination with the "no spaces" rule, and thus that any
> ridiculous name is fine, just as long as it doesn't contain spaces.
>
> And so, look how unreadable is this 100 character name in CamelCase!
> Q.E.D. no spaces is a bad recommendation!

Well, there were no other factors *presented* alongside the blanket
statement that spaces in filenames are unnecessary, so it would appear
on the face of it to be an accurate assessment of the claim being made,
which wasn't in a post of yours to begin with.

And I'd still like to know who died and made whom king where filenames
and spaces therein are concrned.

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: Scott Lurndal
Newsgroups: comp.unix.programmer
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 3 Sep 2024 20:34 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
Newsgroups: comp.unix.programmer
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com> <vauknd$uvji$1@dont-email.me> <20240903084440.0000663d@gmail.com> <20240903103327.395@kylheku.com> <20240903113937.000008a3@gmail.com> <20240903130000.933@kylheku.com> <20240903132547.00000656@gmail.com>
Lines: 28
Message-ID: <xpKBO.50308$Hld5.16972@fx15.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Tue, 03 Sep 2024 20:34:37 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 03 Sep 2024 20:34:37 GMT
X-Received-Bytes: 2330
View all headers

John Ames <commodorejohn@gmail.com> writes:
>On Tue, 3 Sep 2024 20:11:28 -0000 (UTC)
>Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>
>> Because it is based on a strawman interpretation of the "no spaces"
>> rule. That strawman interpretation is that there are no other rules
>> used in combination with the "no spaces" rule, and thus that any
>> ridiculous name is fine, just as long as it doesn't contain spaces.
>>
>> And so, look how unreadable is this 100 character name in CamelCase!
>> Q.E.D. no spaces is a bad recommendation!
>
>Well, there were no other factors *presented* alongside the blanket
>statement that spaces in filenames are unnecessary, so it would appear
>on the face of it to be an accurate assessment of the claim being made,
>which wasn't in a post of yours to begin with.
>
>And I'd still like to know who died and made whom king where filenames
>and spaces therein are concrned.
>

For people who exclusively use GUIs, spaces in a field are not a problem.

For people who work from the command line, spaces suck and are completely
unnecessary and even a PITA and moreover, a potential security issue.

I've not found a need for whitespace in a filesystem over the last 45 years
of interactive computer usage. YMMV.

Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to stdin)
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 21:52 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux (Was: Piping to
stdin)
Date: Tue, 3 Sep 2024 21:52:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <vb80ek$3g6hb$1@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<vauknd$uvji$1@dont-email.me> <20240903084440.0000663d@gmail.com>
<20240903103327.395@kylheku.com> <20240903113937.000008a3@gmail.com>
<20240903130000.933@kylheku.com> <20240903132547.00000656@gmail.com>
<xpKBO.50308$Hld5.16972@fx15.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 03 Sep 2024 23:52:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6d8b6590145ff0d1f13101405f5f220c";
logging-data="3676715"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gUDxQ+inTPrDPXWBTsPrT"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:RaA+Ec0/06GkrrghMhWb8gthSnM=
View all headers

On Tue, 03 Sep 2024 20:34:37 GMT, Scott Lurndal wrote:

> For people who work from the command line, spaces suck and are
> completely unnecessary and even a PITA and moreover, a potential
> security issue.

I work heavily from the command line. I like having spaces in file/
directory names, and I regularly use them.

Subject: Re: Long filenames in DOS/Windows and Unix/Linux
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer, comp.unix.shell
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 21:54 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer,comp.unix.shell
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Date: Tue, 3 Sep 2024 21:54:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <vb80iq$3g6hb$2@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<wwv34mlm70f.fsf@LkoBDZeT.terraraq.uk> <vb099u$162j5$10@dont-email.me>
<vb13k3$1dlt4$1@dont-email.me> <vb7ijo$3dn65$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 03 Sep 2024 23:54:34 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6d8b6590145ff0d1f13101405f5f220c";
logging-data="3676715"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ejnb1OPMhuhyRvJPWNkaY"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:Rnoqiwx0uYq07K+a5ml+yBbuJZ0=
View all headers

On Tue, 3 Sep 2024 13:56:08 -0400, Wayne wrote:

> On 9/1/2024 3:03 AM, Lawrence D'Oliveiro wrote:
>
>> Sorry, no, it looks like the “$'...'” syntax for string literals is not
>> from Posix, it’s a Bash-ism.
>
> Actually, dollar quotes were added to POSIX as of SUS Issue 8:

Glad to know. I was looking at the man page for dash(1) as my reference
for a vanilla POSIX shell.

<https://manpages.debian.org/1/dash.1.en.html>

Subject: Re: Long filenames in DOS/Windows and Unix/Linux
From: Keith Thompson
Newsgroups: comp.unix.programmer
Organization: None to speak of
Date: Tue, 3 Sep 2024 22:16 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Date: Tue, 03 Sep 2024 15:16:36 -0700
Organization: None to speak of
Lines: 63
Message-ID: <87seug1iyj.fsf@nosuchdomain.example.com>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<vauknd$uvji$1@dont-email.me> <20240903084440.0000663d@gmail.com>
<20240903103327.395@kylheku.com> <20240903113937.000008a3@gmail.com>
<20240903130000.933@kylheku.com> <20240903132547.00000656@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 04 Sep 2024 00:16:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0c8cc2609bc8d9fbbbb3d106ce45f413";
logging-data="3664048"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+HnX6+/KVjy/r7z2f5qCe"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:ETDWlLvEEsqL0Hz3Z41dp+NYfCQ=
sha1:2RKlvdanfi4aIQ3Bi9ww1RVYOo4=
View all headers

John Ames <commodorejohn@gmail.com> writes:
> On Tue, 3 Sep 2024 20:11:28 -0000 (UTC)
> Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>
>> Because it is based on a strawman interpretation of the "no spaces"
>> rule. That strawman interpretation is that there are no other rules
>> used in combination with the "no spaces" rule, and thus that any
>> ridiculous name is fine, just as long as it doesn't contain spaces.
>>
>> And so, look how unreadable is this 100 character name in CamelCase!
>> Q.E.D. no spaces is a bad recommendation!
>
> Well, there were no other factors *presented* alongside the blanket
> statement that spaces in filenames are unnecessary, so it would appear
> on the face of it to be an accurate assessment of the claim being made,
> which wasn't in a post of yours to begin with.
>
> And I'd still like to know who died and made whom king where filenames
> and spaces therein are concrned.

There is no official "rule" about spaces in filenames, though I can
imagine easily imagine that some organizations and projects have
rules forbidding them. A couple of data points: The gcc git repo
contains 137394 files and none of them have spaces in their names.
The Linux kernel git repo contains 85803 files, and exactly one has
spaces in its name. In either cases, I don't know whether this is
due to some hard rule.

Spaces in file names are likely not to be an issue if you interact
with the filesystem via a GUI like Windows Explorer *or* if you use
a scripting language like Perl or Python that requires strings used
as filenames to be enclosed in quotation marks. In those contexts,
space is just another character.

It can be a real issue if you're interacting via shell commands.
If I happen to know that none of the files I'm working with have
spaces (or other problematic characters) in their names, a lot of
things become easier -- but risky if there's a funny character I'm
not aware of. For example, I might type something like:

for file in * ; do cp -p $file $file.bak ; done

(Yes, this skips files whose names start with '.'; I usually don't
need to worry about that) I never (well, hardly ever) create files
with spaces in their names. I typically use '-' rather than '
' to delimit words in file names. When I have to work with such
files, I can do it, but it requires a bit of extra effort.

And if, for example, I'm writing a shell script that needs to be
generally useful, I'll spend the extra effort to make sure it works
with arbitrary file names (or I'll write it in a scripting language
where it's not an issue). But I don't typically bother if I know
I'm working with files that I created.

It would be ideal, I suppose, if interactive shells dealt better with
spaces in file names, but I'm not sure how that could be achieved.
In current shells, removing two files named "foo" and "bar" is easy, and
removing a single file named "foo bar" requires some extra effort. I
find that to be a good tradeoff.

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

Subject: Re: Long filenames in DOS/Windows and Unix/Linux
From: Lawrence D'Oliv
Newsgroups: comp.unix.programmer
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 22:18 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.programmer
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Date: Tue, 3 Sep 2024 22:18:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <vb81vo$3g6hb$6@dont-email.me>
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com>
<ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me>
<ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com>
<vauknd$uvji$1@dont-email.me> <20240903084440.0000663d@gmail.com>
<20240903103327.395@kylheku.com> <20240903113937.000008a3@gmail.com>
<20240903130000.933@kylheku.com> <20240903132547.00000656@gmail.com>
<87seug1iyj.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 04 Sep 2024 00:18:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="176f5fbfb5d1157be6fd816dae78eee8";
logging-data="3676715"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VnSfV5/qlpPRNPUSGG3q/"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:VwS2ivH+Q5/zc2toTwSQ9Udqqf8=
View all headers

On Tue, 03 Sep 2024 15:16:36 -0700, Keith Thompson wrote:

> For example, I might type something like:
>
> for file in * ; do cp -p $file $file.bak ; done

It’s quite easy to fix that to work with spaces in file names. How long
have you been working with *nix shells?

Subject: Re: Long filenames in DOS/Windows and Unix/Linux
From: Scott Lurndal
Newsgroups: comp.unix.programmer
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 3 Sep 2024 22:59 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-2.nntp.ord.giganews.com!nntp.giganews.com!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx39.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Newsgroups: comp.unix.programmer
References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <ubg6o7$3jrsn$1@news.xmission.com> <ubg853$2ssj8$1@dont-email.me> <ubg8a8$2t20l$1@dont-email.me> <vaubbo$1d324$1@news.xmission.com> <vauknd$uvji$1@dont-email.me> <20240903084440.0000663d@gmail.com> <20240903103327.395@kylheku.com> <20240903113937.000008a3@gmail.com> <20240903130000.933@kylheku.com> <20240903132547.00000656@gmail.com> <87seug1iyj.fsf@nosuchdomain.example.com> <vb81vo$3g6hb$6@dont-email.me>
Lines: 11
Message-ID: <yxMBO.22279$5%Yf.10118@fx39.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Tue, 03 Sep 2024 22:59:42 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 03 Sep 2024 22:59:42 GMT
X-Received-Bytes: 1465
X-Original-Bytes: 1326
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>On Tue, 03 Sep 2024 15:16:36 -0700, Keith Thompson wrote:
>
>> For example, I might type something like:
>>
>> for file in * ; do cp -p $file $file.bak ; done
>
>It’s quite easy to fix that to work with spaces in file names. How long
>have you been working with *nix shells?

Longer than you.

Pages:123

rocksolid light 0.9.8
clearnet tor