. , , , , , , . , - , , .
bash:
> foo=5
> bar='$foo'
> echo "$bar"
$foo
# $bar expands to '$foo' before the subshell is created, but then `$foo` expands to 5
# during the "normal" round of parameter expansion.
> echo "$bar" | cat
5
, bash , ,
. , , , . , , .
- , POSIX, . bash , , , , . (bash 4.2 lastpipe, , .)