1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

nailed by DEL

Discussion in 'T&T - Miscellaneous' started by Roedy, Jan 29, 2011.

  1. Roedy

    Joined:
    Jun 8, 2008
    Messages:
    120
    Likes Received:
    2
    Typed the following command:

    del /sexy Dreamweaver CS5

    When I should have typed

    del /sexy "Dreamweaver CS5"

    to get rid of the junk the trial version of Dreamweaver left behind after the uninstall.

    I was in the adobe directory at the time. To my astonishment, instead of getting an error that there were so such files as Dreamweaver or CS5, it deleted every directory and every file in the abobe tree. This behaviour violates the principle of least astonishment. I would be curious as to its rationalisation for doing that.

    If you don't want to change DEL's behaviour, it would be nice of it to ask "Boss, are you sure you to wipe out all the files and directories in the Adobe tree?"

    I am reminded of the "why did you do that" car-in-a-tree scene in the Gods Must be Crazy.
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,280
    Likes Received:
    38
    I don't know why it did what it did, but I do suspect that you would have gotten a warning message if you hadn't overridden it with the /Y....
     
  3. Jim Cook

    Joined:
    May 20, 2008
    Messages:
    605
    Likes Received:
    0
    I can not reproduce your problem here.

    On Sat, Jan 29, 2011 at 07:14, Roedy <> wrote:




    --
    Jim Cook
    2010 Mondays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
    Next year they're Tuesday.
     
  4. Rod Savard

    Joined:
    May 26, 2008
    Messages:
    481
    Likes Received:
    3
    I can't reproduce it unless my test directories are empty. If they are empty, then those other subfolders do get deleted (/X).
     
  5. Kachupp

    Joined:
    Aug 9, 2009
    Messages:
    133
    Likes Received:
    0
    it did exactly what you told it to-do /s sub directories /e no error messages /x
    remove empty directories /y answer yes to all prompts


     
  6. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    ---- Original Message ----
    From: Kachupp
    To: ESFabian@comcast.net
    Sent: Saturday, 2011. January 29. 15:54
    Subject: RE: [T&T - Miscellaneous-t-2564] nailed by DEL

    | it did exactly what you told it to-do /s sub directories /e no error
    | messages /x
    | remove empty directories /y answer yes to all prompts
    |
    |
    |
    | Quote:
    || -----Original Message-----
    || Sent: Sunday, 30 January 2011 4:14 a.m.
    || Subject: [T&T - Miscellaneous-t-2564] nailed by DEL
    ||
    ||
    || Typed the following command:
    ||
    || del /sexy Dreamweaver CS5
    ||
    || When I should have typed
    ||
    || del /sexy "Dreamweaver CS5"
    ||
    || to get rid of the junk the trial version of Dreamweaver left behind
    || after the uninstall.
    ||
    || I was in the adobe directory at the time. To my astonishment, instead
    || of getting an error that there were so such files as Dreamweaver or
    || CS5, it deleted every directory and every file in the abobe tree.
    || This behaviour violates the principle of least astonishment. I would
    || be curious as to its rationalisation for doing that.
    ||
    || If you don't want to change DEL's behaviour, it would be nice of it
    || to ask "Boss, are you sure you to wipe out all the files and
    || directories in the Adobe tree?"
    ||
    || I am reminded of the "why did you do that" car-in-a-tree scene in the
    || Gods Must be Crazy.


    It is exactly to avoid the habit of using /y "automatically" that I use the alias ERA (which include all your options) only whan I am sure there is nothing worth keeping, and DEL when there is a chance I don't want everything to disappear!
     
  7. Rod Savard

    Joined:
    May 26, 2008
    Messages:
    481
    Likes Received:
    3
    Where did he tell it to start deleting the current working directory?
     
  8. Kachupp

    Joined:
    Aug 9, 2009
    Messages:
    133
    Likes Received:
    0
    del /sexy Dreamweaver CS5


     
  9. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,732
    Likes Received:
    81
    It wouldn't have, unless he either had something else on the line (like a
    *), an alias for DEL that changed its default behavior, or a symlink
    pointing to the current directory.

    Rex Conn
    JP Software
     
  10. Rod Savard

    Joined:
    May 26, 2008
    Messages:
    481
    Likes Received:
    3
    That doesn't tell TCC to start deleting all the contents of the current working directory.
     
  11. Kachupp

    Joined:
    Aug 9, 2009
    Messages:
    133
    Likes Received:
    0
    He may of had * in it as well


     

Share This Page