mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
Updated SC2223 (markdown)
@@ -19,6 +19,12 @@ If `COLUMNS='/*/*/*/*/*/*'`, the unquoted, problematic code may spend 30+ minute
|
||||
|
||||
The correct code uses double quotes to avoid glob expansion, and therefore does not have this problem.
|
||||
|
||||
When quoting, make sure to update any inner quotes:
|
||||
|
||||
: ${var:='foo'} # Assigns foo without quotes
|
||||
: "${var:='foo'}" # Assigns 'foo' with quotes
|
||||
|
||||
|
||||
### Exceptions:
|
||||
|
||||
None, though this issue is largely theoretical.
|
Reference in New Issue
Block a user