mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Fix typo
@@ -14,7 +14,7 @@ tr -cd '[:digit:]'
|
||||
|
||||
### Rationale:
|
||||
|
||||
From the shell's point of view, unquoted `[:digit:]` is a glob equivalent to `[dgit:]` that matches any single character filename from the group, such as `d` or `t`, in the current directory.
|
||||
From the shell's point of view, unquoted `[:digit:]` is a glob equivalent to `[digit:]` that matches any single character filename from the group, such as `d` or `t`, in the current directory.
|
||||
|
||||
If someone starts learning D and creates a directory named `d` to hold the source code, the glob will be expanded and the script will end up executing `tr -cd d` instead, which is clearly unintended.
|
||||
|
||||
|
Reference in New Issue
Block a user