From ad0d357d3b917725db81dc6358bcbd13fcfb83f8 Mon Sep 17 00:00:00 2001 From: koalaman Date: Fri, 19 Jan 2018 19:15:01 -0800 Subject: [PATCH] Updated SC1026 (markdown) --- SC1026.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SC1026.md b/SC1026.md index 39575ab..9b3de44 100644 --- a/SC1026.md +++ b/SC1026.md @@ -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) \ No newline at end of file +* [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) \ No newline at end of file