We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a59e42 commit 35fd3f0Copy full SHA for 35fd3f0
shellguide.md
@@ -1253,17 +1253,17 @@ We prefer the use of builtins such as the *Parameter Expansion*
1253
functions in `bash(1)` as it's more robust and portable
1254
(especially when compared to things like `sed`).
1255
1256
-Example:
+Examples:
1257
1258
```shell
1259
# Prefer this:
1260
-addition=$(( ${X} + ${Y} ))
+addition=$(( X + Y ))
1261
substitution="${string/#foo/bar}"
1262
```
1263
1264
1265
# Instead of this:
1266
-addition="$(expr ${X} + ${Y})"
+addition="$(expr "${X}" + "${Y}")"
1267
substitution="$(echo "${string}" | sed -e 's/^foo/bar/')"
1268
1269
0 commit comments