svn commit: r342945 - in head: tools/build/mk usr.sbin/bluetooth usr.sbin/bluetooth/bluetooth-config

Enji Cooper yaneurabeya at gmail.com
Fri Jan 11 20:46:55 UTC 2019


> On Jan 11, 2019, at 12:36 PM, Warner Losh <imp at bsdimp.com> wrote:

...

> I talked about this at BSDCan in June. $foo is preferred (there
> *is* a difference) and, as you say, if a file is consistently ${foo}
> then it is fine.
> 
> I prefer {} because $foo:bar doesn't work while ${foo}:bar does.

I think the form Warner brings up makes more sense to sh(1) newcomers who might not know the intricacies of the grammar. Similar rules apply to perl and other languages as well when it comes to variable expansion and such.
Thank you,
-Enji
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20190111/a51c95c9/attachment.sig>


More information about the svn-src-head mailing list