News for hackers. Stuff that matters.
Re:Filenames and Pathnames in Shell: How to Do It Correctly by watersb on Tuesday June 20, 2023 @01:36PM (#36407543)
The "bag of bytes" POSIX(?) standard(?) can be overridden at the filesystem level:

ZFS

   zpool create -O utf8only=on -O normalization=formD -O casesensitivity=insensitive mypool <pool geometry> <devices>
My primary use case for ZFS is a home lab file server to my Mac clients; you might want to keep Unicode normalization and case sensitivity at the default settings.

My suggestion here is just one [futile] step at reducing the madness; Postel's Law dictates that we should expect pathological inputs to shell scripts anyway.

("emit clean outputs, expect crazy inputs")

https://en.m.wikipedia.org/wiki/Robustness_principle

There are no comments on this comment yet.