On Wed, Oct 14, 2015 at 1:52 PM, Derek Smithies <[email protected]>
wrote:

> On 14/10/15 13:49, Stephen Irons wrote:
> I prefer to use $(...) rather than backticks `...` to capture stdout
> from a command pipeline into a shell variable.
>
> Why $( ) instead of backticks ???


Backticks cannot be nested, for one.

Contrived example: $ echo $(ls $(pwd)/..)

-jim
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users

Reply via email to