I suddenly found the folder “-p” in my home directory, one day...
“ ls -p”-p/
“ ls -p/”
/ is not a flag option
”ls *”
-p
“ls */*”
No file nor directory...
“rm -p”
-p isn’t a flag
So....
I dunno about you guys, but this sucked figuring out how to handle.
It can be removed with
“rm -r ./-p/“
But everything else makes it into a flag.
Moral of the story:
If a file like “-a” shows up and it’s existence bothers you,
DON’T TRY REMOVING IT WITHOUT
“./“ or some other path behind it!