Skip to main content
6 events
when toggle format what by license comment
Apr 16, 2021 at 14:37 comment added ilkkachu @RalfFriedl, but, a world where such effed-up filenames were not possible would indeed be a nicer one. We just need to convince every Unix-like system to add some limitations. Or at least convince them to read dwheeler.com/essays/fixing-unix-linux-filenames.html
Apr 16, 2021 at 14:06 comment added ilkkachu @RalfFriedl, of nothing else, we see them every time we test the answers we write here on the site :D
Apr 16, 2021 at 13:00 comment added terdon Yes, of course. Many times. Usually because of a bug somewhere, but not always. More importantly, such files can be trivially created (e.g. touch foo$'\n'bar) so we should make sure we can deal with them.
Apr 16, 2021 at 12:58 comment added RalfFriedl @terdon Yes. But have you ever seen newline in file names in real life?
Apr 16, 2021 at 12:45 comment added terdon Note that your sed approach will fail if any file names contain newlines.
Apr 16, 2021 at 12:42 history answered RalfFriedl CC BY-SA 4.0