• rockSlayer
    link
    fedilink
    arrow-up
    16
    ·
    2 years ago

    Excuse me, but that type of foolishness requires -- no-preserve-root nowadays

    • narshee@iusearchlinux.fyi
      link
      fedilink
      arrow-up
      21
      ·
      2 years ago

      Not in this case. It’s */ here so it expands to directories at current location. I’m sure that’s a typo though

      • rockSlayer
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        2 years ago

        I’m not brave enough to test it on my distro, so I’ll take your word on that lol

        • narshee@iusearchlinux.fyi
          link
          fedilink
          arrow-up
          12
          ·
          2 years ago

          You can do echo */ and echo /* to see how they expand. Also rm -rf / already is enough without the * as it already is recursive

              • second@feddit.uk
                link
                fedilink
                English
                arrow-up
                7
                ·
                edit-2
                2 years ago

                Originally, rm would merrily nuke your whole filesystem if you told it to. At some point, someone thought that was a pretty stupid default behaviour, so they added that flag to change the default to not nuke your entire filesystem. However, they made the change backwards compatible in case someone still needed the old behaviour. I can imagine in a container or throwaway environment, it might be vaguely reasonable to expect to be able the blat /.

                See also:

                Unix gives you just enough rope to hang yourself – and then a couple of more feet, just to be sure.

                – Eric Allman

          • rockSlayer
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            2 years ago

            I’m aware of how recursive force remove works. I’m just kidding around.

          • FuglyDuck
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 years ago

            Anybody brave enough to tell the MS rep this on patch night??

            (You have backups, right?)