• KillingTimeItself@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      5 months ago

      i’m not sure if you’re allowed to escape the / character, i feel like it’s blatantly illegal. But you could use the funny character set trolling thing instead, where you use a not forward slash instead. (not the \)

        • KillingTimeItself@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          0
          ·
          5 months ago

          maybe on macos, that might be funny, it’s probably fucky over there for some other reason anyway.

          Im pretty sure it’s just explicitly illegal in linux though.

    • ulterno@lemmy.kde.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      5 months ago

      Just tried. It processes the escape first and then finds the path with it. Essentially, making it look into a directory made by the characters before the \/.

      The above was when I tried:

      echo "asd" > asd\/dsa
      

      But then I tried using Dolphin (GUI File Browser) to make a file and:

      ls
       1   2   3   4  'asd\⁄sad.txt'ls
      1  2  3  4  asd⁄sad.txt
      

      In the first one, the backslash is not the escape character, but part of the text.