Updated SC2006 (markdown)

Stuart P. Bentley
2015-02-05 18:27:31 -08:00
parent 4ba31079a6
commit 46e1976b1d

@@ -1,14 +1,14 @@
# Use $(..) instead of legacy \`..\` # Use $(..) instead of legacy \`..\`
### Problematic code: ### Problematic code
echo "Current time: `date`" echo "Current time: `date`"
### Correct code: ### Correct code
echo "Current time: $(date)" echo "Current time: $(date)"
### Rationale: ### Rationale
Backtick command substitution `` `..` `` is legacy syntax with several issues. Backtick command substitution `` `..` `` is legacy syntax with several issues.
@@ -21,3 +21,7 @@ Backtick command substitution `` `..` `` is legacy syntax with several issues.
### Exceptions ### Exceptions
None. None.
### See also
- http://mywiki.wooledge.org/BashFAQ/082