View Single Post
  #6   (View Single Post)  
Old 23rd September 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: New Zealand
Posts: 2,201
Default

Not sure how this relates to the OP's question (Which I find fairly confusing to be honest), but $() has an advantage in that it's better "nestable", for example consider:

Code:
$(ls | grep $(cat somefile))
There are conditions where `` will fail.

As for portability: $() has long since been a part of the POSIX standard. Writing shell scripts with `` for portability is like modifying your programs for Windows 95.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote