> On Jan 11, 2019, at 12:36 PM, Warner Losh <i...@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
signature.asc
Description: Message signed with OpenPGP