Updated SC1026 (markdown)

koalaman
2018-01-19 19:15:01 -08:00
parent 8b10bf75e5
commit ad0d357d3b

@@ -19,7 +19,7 @@
For `[[ .. ]]`, use regular parentheses.
For `[ .. ]`, either use escaped parentheses, or preferably rewrite the expression into multiple `[ .. ]` joined with `&&`, `||` and `{ ..; }` groups.
For `[ .. ]`, either use escaped parentheses, or preferably rewrite the expression into multiple `[ .. ]` joined with `&&`, `||` and `{ ..; }` groups. The latter is preferred because `[ .. ]` is undefined for more than 4 arguments in POSIX.
### Exceptions:
@@ -27,4 +27,5 @@ None
### Related resources:
* [Bash Pitfalls: `if [ [ a = b ] && [ c = d ] ]; then ...`](https://mywiki.wooledge.org/BashPitfalls#pf11)
* [Bash Pitfalls: `if [ [ a = b ] && [ c = d ] ]; then ...`](https://mywiki.wooledge.org/BashPitfalls#pf11)
* [POSIX `test`](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html)