← All tips

Bash: safer rm with `--`

bashpitfalls

Avoid files starting with - being treated as flags.

rm -- "$file"