mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2160 (markdown)
@@ -25,7 +25,7 @@ This is a stylistic suggestion to use `true` instead of `[ true ]`.
|
|||||||
`[ true ]` seems to suggest that the value "true" is somehow relevant to the statement. This is not the case, it doesn't matter. You can replace it with `[ false ]` or `[ wombat ]`, and it will still always be true:
|
`[ true ]` seems to suggest that the value "true" is somehow relevant to the statement. This is not the case, it doesn't matter. You can replace it with `[ false ]` or `[ wombat ]`, and it will still always be true:
|
||||||
|
|
||||||
String | In brackets | Outside brackets
|
String | In brackets | Outside brackets
|
||||||
--------+--------------+-----------------
|
--------|--------------|-----------------
|
||||||
true | true | true
|
true | true | true
|
||||||
false | true | false
|
false | true | false
|
||||||
wombat | true | unknown command
|
wombat | true | unknown command
|
||||||
|
Reference in New Issue
Block a user