<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><base></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 20 Aug 2018, at 6:32 pm, William Parducci <<a href="mailto:bill@parducci.net" class="">bill@parducci.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><base class=""><br class=""><blockquote type="cite" class="">On Aug 20, 2018, at 10:17 AM, Christopher Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk" class="">jonesc@hep.phy.cam.ac.uk</a>> wrote:<br class=""><br class=""><blockquote type="cite" class="">On 20 Aug 2018, at 4:03 pm, Lee Bast <<a href="mailto:x-lists@asgarda.com" class="">x-lists@asgarda.com</a>> wrote:<br class=""><br class=""><blockquote type="cite" class="">On Aug 20, 2018, at 1045 , William Parducci <<a href="mailto:bill@parducci.net" class="">bill@parducci.net</a>> wrote:<br class=""><br class=""></blockquote><blockquote type="cite" class="">For future reference NEVER issue sudo rm -rf in a multiline command. It is just asking for stuff like this to happen.<br class=""></blockquote><span class="Apple-tab-span" style="white-space:pre">      </span>The guide (and a lot of MacPorts in general I guess) is more aimed at devs and power users so it kind of assumes everyone is comfortable with the CLI and knows basic footguns, but looking at that page it might be a reasonable idea to not just tell people to run a copy-pasted multiline sudo rm -rf command. It's a dangerous enough thing and it's a low bar to not say "copy and run this" and change it to "here are a list of MacPorts' file and directory locations, delete them for a full manual removal", then leave it to users.<br class=""></blockquote><br class="">Whilst I have myself pointed people at that page myself in the past, perhaps a case could be made that having a public web page with instructions that start with “sudo rm -rf “ is perhaps not the best idea. If the user copies the command badly, and doesn’t appreciate how powerful it can be, they could (and it seems have) run into problems.<br class=""><br class="">Perhaps we should not have that command explicitly written there. Better yet perhaps and official ‘uninstaller’ that does the equivalent in a control manner would be better.<br class=""></blockquote><br class="">Another option for consideration is to put in a disclaimer along the lines of “DO NOT ATTEMPT UNLESS YOU UNDERSTAND WHAT THIS DOES AND THE RISKS INVOLVED.” on pages that have OS command line executables</div></div></blockquote><div><br class=""></div><div>That is a easy thing to do, but only helps if people read it and understand. Also, if the user is not familiar with doing things at the command line does not help prevent cut ’n’ paster errors.</div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""> and/or recompose the commands to individual lines so as to—in theory—make them less prone to misapplication:<br class=""><br class=""><font face="Courier" class="">$ sudo rm -rf /opt/local</font><br class=""><font face="Courier" class="">$ sudo rm -rf /Applications/DarwinPorts <br class="">$ sudo rm -rf /Applications/MacPorts <br class="">$ sudo rm -rf /Library/LaunchDaemons/org.macports.* <br class="">$ sudo rm -rf /Library/Receipts/DarwinPorts*.pkg <br class="">$ sudo rm -rf /Library/Receipts/MacPorts*.pkg <br class="">$ sudo rm -rf /Library/StartupItems/DarwinPortsStartup <br class="">$ sudo rm -rf /Library/Tcl/darwinports1.0 <br class="">$ sudo rm -rf /Library/Tcl/macports1.0 <br class="">$ sudo rm -rf ~/.macports<br class=""></font></div></div></blockquote><div><br class=""></div><div>I am not sure that helps. You have replace one cut and paste instance, with multiple ones all of which could go wrong.</div><div><br class=""></div><div>My best guess as to what happened here is the OP some how got some spaces into the above, so effectively ran ‘sudo rm -rf *’ on their home area.</div><div><br class=""></div><div>Honestly, I suspect the only safe fix here is to provide an uninstaller (could just be a bash script) that does it safely for the user…</div><div><br class=""></div><div>Chris</div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class="">b</div></div></blockquote></div><br class=""></body></html>