Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: 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> Reply-To: Helmut Waitzmann Anti-Spam-Ticket.b.qc3c 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 Mail-Copies-To: nobody Bytes: 2183 Lawrence D'Oliveiro : > I wrote: > >> If you avoid newlines in filenames, Posix shells can cope with=20 >> anything else if you set =E2=80=9CIFS=3D$'\n'=E2=80=9D.=20 >> > > Sorry, no, it looks like the =E2=80=9C$'...'=E2=80=9D syntax for string l= iterals=20 > is not from Posix, it=E2=80=99s a Bash-ism.=20 > > > I think it=E2=80=99s still possible to assign a newline to $IFS, it just= =20 > takes a bit more work.=20 > newline=3D"$( printf '%b.' '\n' )" && newline=3D"${newline%?}" As this is a problem with the shell, I suggest Followup-To=20 "comp.unix.shell"