3 ms·
getopt-like libs stop parsing options after “--“, so “rm -- *” should be safe, afair.
by wruza 5y ago
getopt-like libs stop parsing options after “--“, so “rm -- *” should be safe, afair.
- im3w1l 5y agoUsing double-dash solves almost all such issues. One notable exception: a file named dash will still be interpreted as stdin. echo a > - echo b | cat -- - Output: b