On Mon, 26 Jul 2004, Alexander Dalloz wrote:
$(foo) is the current notation and some day ` ` (backticks) will go away from bash (by it's developers).
one other subtle point is that this construct produces only what is sent to stdout -- stderr would still, by default, come to the tty. if you really wanted both output streams, you could always do something like:
VAR=$(command ... 2>&1)
but most folks typically want only stdout, anyway.
rday