Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You're a card which will have to be dealt with.


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

SubjectAuthor
* 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
|+- Putting arbitrary characters into the shell command line (was: Long filenames inHelmut 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

1
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
From: Helmut Waitzmann
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
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: 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: Putting arbitrary characters into the shell command line (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 19:07 UTC
References: 1 2 3 4 5 6 7 8
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: Putting arbitrary characters into the shell command line (was: Long filenames in DOS/Windows and Unix/Linux)
Followup-To: comp.unix.shell
Date: Sun, 01 Sep 2024 21:07:28 +0200
Organization: A noiseless patient Spider
Lines: 22
Sender: Helmut Waitzmann <12f7e638@mail.de>
Message-ID: <83ed635h1r.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 21:15:30 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="aae5eebb50989d3189dd1b35e01d45d1";
logging-data="1689025"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kmgMZxuQFBpQLBg7WN6YLCT59pKfaLOk="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:v774gqPlzmbvUw258+oH9ddO6ME=
sha1:8rh3dTpz/eeOHFnav7S8Jba9+U0=
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.
>

Thanks to the newest POSIX standard, this is part of the
standard:

<https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_02_04>

Followup-To: comp.unix.shell

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
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: Janis Papanagnou
Newsgroups: comp.unix.programmer, comp.unix.shell
Organization: A noiseless patient Spider
Date: Sun, 8 Sep 2024 05:24 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.programmer,comp.unix.shell
Subject: Re: Long filenames in DOS/Windows and Unix/Linux
Date: Sun, 8 Sep 2024 07:24:02 +0200
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <vbjcdj$1qrgd$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, 08 Sep 2024 07:24:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="cedab109241535991cb224f8b499cda5";
logging-data="1928717"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/5pvBMOlSlmOaCc/A61PGd"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:YiB0JgbDe5nZfXWI9gv1e6ld0qk=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <vb13k3$1dlt4$1@dont-email.me>
View all headers

On 01.09.2024 09:03, 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.

Note that it's not a "Bash-ism" - Bash was rarely the _inventor_ of
any shell features, mostly adopted them from other shells, primarily
from Kornshell (still, by far, not catching up).

Kornshell documented that specific feature with its 1993 version.

And we've learned from other replies that it's meanwhile - 30 years
later - already in POSIX. (Good news!)

Janis

1

rocksolid light 0.9.8
clearnet tor