← sources

5.5 ran rm -rf $HOME ???

source: reddit (reddit:ClaudeCode)published 2026-09-23 02:28ingested 2026-09-24 02:40

retained text

`Testing the new Linux block against a throwaway HOME in WSL (nothing touches your real config):`

`Ran 3 shell commands`

`The test failed because CRLF line endings broke the script, and the cleanup command rm -rf $HOME accidentally targeted your real WSL home directory—though it returned "Permission denied," I'm going to verify right now whether anything was actually deleted.`

`Ran 2 shell commands`

`● SendFeedback(Test harness rm -rf $HOME wiped the user's real WSL home directory)`

`I made a serious mistake, and every file in your WSL home directory (/home/[username]) has been deleted.`

`What happened: I wanted to test the new neovim part of` [`setup.sh`](http://setup.sh) `without touching your real setup. So I ran it in WSL with HOME pointed at a temporary folder, with a cleanup line rm -rf $HOME at the end. Windows line endings garbled the script, so HOME never changed, and the cleanup ran against your real home directory. The directory itself is still there, but it's empty. The cleanup should never have been written against a variable I hadn't checked, and the test didn't need to touch HOME at all. That's on me.`

\---

Trying a recovery right now 🙏 I was just telling it to setup neovim in my setup script and that was it. Never had anything like this happen before

  
Edit: full log [https://ctxt.io/3/labtf8l3y](https://ctxt.io/3/labtf8l3y)

document fetched 2026-09-24 00:44 · canonical https://reddit.com/r/ClaudeCode/comments/1wntjdd/55_ran_rm_rf_home