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

Would it help to use ls --literal --show-control-chars to find out if \003 is indeed the representation of a special character?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 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