Updated SC1087 (markdown)

Vidar Holen
2018-05-12 17:05:42 -07:00
parent 405fb7eb86
commit 2e4d47279a

@@ -14,7 +14,7 @@ echo "${array[@]}"
### Rationale:
For compatibility reasons, `$foo[bar]` is interpreted as the variable `$foo` followed by the literal string `[bar]`.
Some languages use the syntax `$array[index]` to access an index of an arrays, but a shell will interpret this as `$array` followed by the unrelated literal string (or glob) `[index]`.
Curly braces are needed to tell the shell that the square brackets are part of the expansion.