Script style: ` or $()?
Warner Losh
imp at bsdimp.com
Thu May 31 15:39:50 UTC 2012
On May 30, 2012, at 11:20 PM, Lars Engels wrote:
> On Wed, May 30, 2012 at 02:44:41PM -0700, Xin Li wrote:
>> Hi,
>>
>> Is there any rule of style for new code that ` or $() is preferred?
>>
>> Thanks in advance!
>
> I would always go for $(), because you can easily nest it.
My observation is that the project used to use the ` form in its early days, but as people discover $(), they have migrated to it in general. The rc scripts, however, seem to prefer the ` form over the $( form 214 to 37.
Warner
More information about the freebsd-rc
mailing list