News for hackers. Stuff that matters.
Re:Filenames and Pathnames in Shell: How to Do It Correctly by Self-Perfection on Wednesday June 21, 2023 @11:34AM (#36419873)
This is a nice comprehensive resource. I admire author's perseverance in expounding these edge cases and pursuing to amend them somehow. For many years!

Yet filenames is not the only place that can unexpectedly include control chars. For instance here is creation of an user with partially colored username. Still work on GNU/Linux:

  $ UNAME=$(printf '%b' "iam\033[1;31mred\033[0m\n")
  $ sudo useradd --create-home "$UNAME"
Lot's of tools break in various ways for such user.

There are no comments on this comment yet.