Though the Windows thing was really funny 😂.

  • lemmyvore@feddit.nl
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    doing exactly what the caller intended.

    No, no. Exactly what the user told it to do. Not what they intended. There’s a difference.

    • hstde@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      6 months ago

      Exactly type rm -rf / instead of rm -rf ./ and you ducked up. Well you messed up a long time ago by having privileges to delete everything, but then again, you are human, some mistakes will be made.

      • taladar@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        6 months ago

        Deleting the current directory via ./ seems contrived since you would just use . or more likely the directory name from outside the directory. What does happen is rm -rf ${FOO}/ while ${FOO} is an empty string.