From 289593c64f641525d76ac09ae1e0cfa9f00d09d4 Mon Sep 17 00:00:00 2001 From: Xiao Liang Date: Fri, 27 Jan 2017 00:08:02 -0500 Subject: [PATCH] change '..' to 'STATEMENT'. Because initially, when I see '..', I thought it means go to parent directory. --- SC2006.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SC2006.md b/SC2006.md index a7e19d3..0d042be 100644 --- a/SC2006.md +++ b/SC2006.md @@ -1,4 +1,4 @@ -# Use $(..) instead of legacy \`..\` +# Use $(STATEMENT) instead of legacy \`STATEMENT\` ### Problematic code @@ -14,13 +14,13 @@ echo "Current time: $(date)" ### Rationale -Backtick command substitution `` `..` `` is legacy syntax with several issues. +Backtick command substitution `` `STATEMENT` `` is legacy syntax with several issues. 1. It has a series of undefined behaviors related to quoting in POSIX. 1. It imposes a custom escaping mode with surprising results. 1. It's exceptionally hard to nest. -`$(..)` command substitution has none of these problems, and is therefore strongly encouraged. +`$(STATEMENT)` command substitution has none of these problems, and is therefore strongly encouraged. ### Exceptions