mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated Sc2035 (markdown)
@@ -1,10 +1,11 @@
|
||||
# Use ./*.m3u so names with dashes won't become options.
|
||||
# Use ./*.foo so names with dashes won't become options.
|
||||
|
||||
### Problematic code:
|
||||
rm *
|
||||
|
||||
### Correct code:
|
||||
rm ./*
|
||||
rm -- * # This is sane, too, as -- is a popular end-of-options seperator
|
||||
|
||||
### Rationale
|
||||
|
||||
|
Reference in New Issue
Block a user