Bash Quirkiness
David Cary Hart
Fedora at TQMcube.com
Mon Jul 26 15:15:42 UTC 2004
On Mon, 2004-07-26 at 11:08, Robert P. J. Day wrote:
> it's short for "command substitution", which runs the command
> contained with the ` quotes and produces what's printed to standard
> output. *very* different from the regular single quotes -- you *bet*
> they're not interchangeable.
>
> to avoid confusion, you can also identify command substitution with
> the syntax $(... command ...), which i personally prefer, since it's
> much clearer. that is, you'd be better off writing:
>
> c=$(expr ... ')
>
> at least, in my opinion.
>
Outstanding. Thank you very much.
More information about the fedora-list
mailing list