shell-safe-rm icon indicating copy to clipboard operation
shell-safe-rm copied to clipboard

⚠️ Running this will frequently delete the parent directory ⚠️

Open wparad opened this issue 2 years ago • 2 comments

If you run this executable occasionally it will decide to delete the current working directory as well as the target.

I'm almost positive it was happening when running safe-rm CHILD_DIRECTORY -rf or safe-rm ./CHILD_DIRECTORY -rf, but I often would only find out ~10 minutes later that it happened when doing development that the directory I was in was no longer available. Or maybe it was putting the -rf first that caused the problem. One of these was the issue.

wparad avatar Oct 01 '22 09:10 wparad

How to reproduce this issue?

adoyle-h avatar Nov 14 '22 06:11 adoyle-h

I'm almost positive it was happening when running safe-rm CHILD_DIRECTORY -rf or safe-rm ./CHILD_DIRECTORY -rf, but I often would only find out ~10 minutes later that it happened when doing development that the directory I was in was no longer available. Or maybe it was putting the -rf first that caused the problem. One of these was the issue.

wparad avatar Nov 14 '22 10:11 wparad