Deutsch English Français Italiano |
<vb17gp$1e0k4$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.misty.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Nuno Silva <nunojsilva@invalid.invalid> 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= Bytes: 1761 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