$() || `` ??


While cleaning up some bash scripts tonight, I started to wonder which of the following two substitutions is clearer:

$ echo {foo=(ls)}

Desktop Documents Library Movies Music Pictures Public SUMS Sites 

or

$ echo {foo=ls}

Desktop Documents Library Movies Music Pictures Public SUMS Sites

I really think the second form is a bit more clear, though it could throw off people who get ` and ' mixed up! Choices, choices!

This article was posted by Matty on 2005-08-15 21:20:00 -0400 -0400