From: "Theodore Ts'o" <tytso@mit.edu>
To: Alejandro Colomar <alx@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org,
linux-man@vger.kernel.org
Subject: Re: newlines in filenames; POSIX.1-2024
Date: Tue, 22 Apr 2025 17:21:31 -0500 [thread overview]
Message-ID: <20250422222131.GE569616@mit.edu> (raw)
In-Reply-To: <iezzxq25mqdcapusb32euu3fgvz7djtrn5n66emb72jb3bqltx@lr2545vnc55k>
On Wed, Apr 16, 2025 at 06:50:00PM +0200, Alejandro Colomar wrote:
>
> I'm updating the manual pages for POSIX.1-2024. One of the changes
> in this revision is that POSIX now encourages implementations to
> disallow using new-line characters in file names.
>
> Historically, Linux (and maybe all existing POSIX systems?) has
> allowed new-line characters in file names.
Do we have any information of which implementations (if any) might
decide to disallow new-line characters?
If the Austin Group is going to add these sorts of "encouragements"
without engaging with us dirctly, it seems to be much like King Canute
commanding that the tide not come in....
Personally, I'm not convinced a newline is any different from any
number of weird-sh*t characters, such as zero-width space Unicode
characters, ASCII ETX or EOF characters, etc.
I suppose we could add a new mount option which disallows the
weird-sh*t characters, but I bet it will break some userspace
programs, and it also begs the question of *which* weird-sh*t
characters should be disallowed by the kernel.
> I guess there's no intention to change that behavior. But I should
> ask. I thought of adding this paragraph to all pages that create
> file names:
>
> +.SH CAVEATS
> +POSIX.1-2024 encourages implementations to
> +disallow creation of filenames containing new-line characters.
> +Linux doesn't follow this,
> +and allows using new-line characters.
>
> Are there any comments?
I think this is giving the Austin Group way more attention/respect
than they deserve, especially when it's an optional "encourage", but
whatever...
- Ted
next prev parent reply other threads:[~2025-04-22 22:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-16 16:50 newlines in filenames; POSIX.1-2024 Alejandro Colomar
2025-04-22 22:21 ` Theodore Ts'o [this message]
2025-04-23 7:31 ` Alejandro Colomar
2025-04-24 0:05 ` Theodore Ts'o
2025-04-24 7:00 ` Alejandro Colomar
2025-04-25 14:54 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250422222131.GE569616@mit.edu \
--to=tytso@mit.edu \
--cc=alx@kernel.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).