Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on How can I restrict filename characters?

Post

How can I restrict filename characters?

+5
−0

Suppose I want to limit what characters are allowed in filenames. For example, I want file creation to fail if there is a \n in the name.

Is there a way to enforce this?

If it matters, I prefer an answer for Arch Linux.

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

What operating system? (5 comments)
What operating system?
Canina‭ wrote 6 months ago · edited 6 months ago

What operating system(s) are you interested in answers for?

I'm closing the question for the moment, but if you clarify this, I suspect it will be answerable. Feel free to flag for reopening after editing.

matthewsnyder‭ wrote 6 months ago

I would have preferred if you hadn't closed it. I don't think closing the question is necessary just to get me to edit and add a small detail. Nevertheless, I did add it.

Canina‭ wrote 6 months ago · edited 6 months ago

matthewsnyder‭ I would honestly not consider it a "small detail" whether you are interested in answers for, say, FreeBSD, Windows Subsystem for Linux, Mac OS X, Linux, or Illumos, to name just a few possibilities; especially for a question where answers are likely to touch on deep aspects of the workings of the operating system kernel or file system layer.

Now that you have clarified that you are primarily interested in answers for a distribution using the Linux kernel, I have reopened the question.

alx‭ wrote 6 months ago

Canina‭ Maybe a safe assumption is that it would be on Linux, given the name of the server. :)

matthewsnyder‭ wrote 6 months ago · edited 6 months ago

Canina‭ Closing the question for this feels unfriendly to me.

I initially assumed that it's obvious the question is about Linux, given the name ("linux") and logo (a penguin) of the site. In fact, I thought you were asking about distro, not OS. In retrospect, that is wrong, because technically the site also covers "unix-like OSes".

Regardless, adding the note is something I can easily do by editing. It's not like you made the comment and I vanished from the site for months. You could have waited a few hours for me to just make the edit, instead of closing and forcing me to ask your permission again for people to be allowed to post an answer.

Of course you're the mod so you make the rules, but I think it's worth pointing out that this "close first, ask later" approach is part of what turns people off StackOverflow in the first place. It is not a good way to attract and retain users. Just my 2 cents...