mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-04 03:46:06 +08:00
Add citation (for more info)
@@ -13,3 +13,5 @@ Since files and arguments are strings passed the same way, programs can't proper
|
|||||||
A file named `-f` (`touch -- -f`) will not be deleted by the problematic code. It will instead be interpreted as a command line option, and `rm` will even report success.
|
A file named `-f` (`touch -- -f`) will not be deleted by the problematic code. It will instead be interpreted as a command line option, and `rm` will even report success.
|
||||||
|
|
||||||
Using `./*` will instead cause the glob to be expanded into `./-f`, which no program will treat as an option.
|
Using `./*` will instead cause the glob to be expanded into `./-f`, which no program will treat as an option.
|
||||||
|
|
||||||
|
For more information, see "[Filenames and Pathnames in Shell: How to do it Correctly](http://www.dwheeler.com/essays/filenames-in-shell.html)".
|
||||||
|
Reference in New Issue
Block a user