• WhyJiffie@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      5
      ·
      9 hours ago

      Because you don’t always want to delete the directory itself, to then recreate it and set the ownerships and permissions again

          • z3rOR0ne@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            5 hours ago

            Fair enough. Why not tack on rm ./.* as well to that list? Lol. Sorry, I’m truly just curious and not trying to be a smart alec.

            • WhyJiffie@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              2
              ·
              3 hours ago

              with that we arrive at the original problem: depending on your shell and its configuration, .. could be part of the results of the glob expansion. so at that point why bother stepping one dir level up