Tagged articles
2 articles
Page 1 of 1
ITPUB
ITPUB
May 26, 2016 · Fundamentals

Mastering Shell Command Substitution: Backticks vs $() and Escape Tricks

This article explains shell command substitution, comparing backticks and the modern $(…) syntax, details their handling of special characters, demonstrates nesting and backslash escaping tricks across various shells, and provides practical examples and solutions for reliable quoting and path handling.

BashShellcommand substitution
0 likes · 10 min read
Mastering Shell Command Substitution: Backticks vs $() and Escape Tricks
ITPUB
ITPUB
May 24, 2016 · Fundamentals

Why Does a Backslash Behave Differently in Bash and Ksh? Master Shell Quoting

This article explains literal versus meta characters in shells, the three quoting methods (escape, strong, weak), and demonstrates why printing backslashes with echo requires different numbers of backslashes in Bash and Ksh, including work‑arounds like the -E option and set -x debugging.

BashEscape CharactersShell
0 likes · 8 min read
Why Does a Backslash Behave Differently in Bash and Ksh? Master Shell Quoting