On 07Apr2016 22:27, derek martin <inva...@pizzashack.org> wrote:
On Thu, Apr 07, 2016 at 04:23:18PM -0700, David Champion wrote:
Speaking of which, it's taken me until the last year to use $(command)
consistently instead of `command`, and I'm not sure anymore why I was
a stickler.  I assume some older shell didn't support $() but I can't
recall which.

I still don't, as you may have noticed above. ;-)  But I DO use it,
and notably you can combine `` and $() to get two levels of execution.
That's occasionally handy.

I started getting aggressive about $() in the last year or so; it has certainly been around for long enough. The big attraction for me is that it nests without introducing more slosh-escaping levels. So you can $( ... $( ... $(...) ... ) ... ) without stuff getting nasty. Not that I nest that deeply, but whenever I have a regexp or the like inside `` it is immediately more painful.

Cheers,
Cameron Simpson <c...@zip.com.au>

Reply via email to