From 46e1976b1d42f04804565ce3b52687e2bfd5fc79 Mon Sep 17 00:00:00 2001 From: "Stuart P. Bentley" Date: Thu, 5 Feb 2015 18:27:31 -0800 Subject: [PATCH] Updated SC2006 (markdown) --- SC2006.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/SC2006.md b/SC2006.md index ab2993c..f932106 100644 --- a/SC2006.md +++ b/SC2006.md @@ -1,14 +1,14 @@ # Use $(..) instead of legacy \`..\` -### Problematic code: +### Problematic code echo "Current time: `date`" -### Correct code: +### Correct code echo "Current time: $(date)" -### Rationale: +### Rationale Backtick command substitution `` `..` `` is legacy syntax with several issues. @@ -20,4 +20,8 @@ Backtick command substitution `` `..` `` is legacy syntax with several issues. ### Exceptions -None. \ No newline at end of file +None. + +### See also + +- http://mywiki.wooledge.org/BashFAQ/082 \ No newline at end of file