you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 3 months ago* (last edited 3 months ago)

The default output itself is pretty definitive, assuming you are indeed using GNU ls and don't have the QUOTING_STYLE environment variable set. https://www.gnu.org/software/coreutils/manual/html_node/Formatting-the-file-names.html explains all this (including your options) and more.

$ touch $'folder\x03'
$ ls --quoting-style shell-escape  # the default
'folder'$'\003'
$ ls --quoting-style c
"folder\003"
$ ls --quoting-style escape
folder\003
  • source
  • parent