<div dir="auto"><div>I almost always use them. Only left them out for very simple scripts. </div><div dir="auto"><br></div><div dir="auto">It's not really necessary all the time, but better safe than sorry... <br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On Jan 9, 2017 22:00, "Bob Jonkman via talk" <<a href="mailto:talk@gtalug.org">talk@gtalug.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class="quoted-text"><br>
Chris F.A. Johnson wrote:<br>
> The braces are not necessary here.<br>
<br>
</div>Are braced incorrect here? I've been putting braces around all<br>
variable names, so that there are fewer syntax exceptions for me to<br>
remember...<br>
<br>
- --Bob.<br>
<div class="quoted-text"><br>
<br>
On 2017-01-09 05:47 PM, Chris F.A. Johnson via talk wrote:<br>
> On Sun, 8 Jan 2017, Mauro Souza via talk wrote:<br>
><br>
>> Or nFname="${base}.mp4"<br>
>><br>
>> Using brackets you can mix variables and text and create<br>
>> something like this:<br>
>> newName="${oldname}-bkp-${<wbr>filedate}.${extension}.old"<br>
><br>
> The braces are not necessary here. This will work fine:<br>
><br>
> newName="$oldname-bkp-$<wbr>filedate.$extension.old"<br>
><br>
> Braces would be necessary if you were using underscores instead of<br>
>  hyphens because they can be part of a variable name:<br>
><br>
> newName="${oldname}_bkp_$<wbr>filedate.$extension.old"<br>
><br>
<br>
</div>- --<br>
<br>
<br>
- --<br>
Bob Jonkman <<a href="mailto:bjonkman@sobac.com">bjonkman@sobac.com</a>>          Phone: <a href="tel:%2B1-519-635-9413" value="+15196359413">+1-519-635-9413</a><br>
SOBAC Microcomputer Services             <a href="http://sobac.com/sobac/" rel="noreferrer" target="_blank">http://sobac.com/sobac/</a><br>
Software   ---   Office & Business Automation   ---   Consulting<br>
GnuPG Fngrprnt:04F7 742B 8F54 C40A E115 26C2 B912 89B0 D2CC E5EA<br>
<br>
<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
Comment: Ensure confidentiality, authenticity, non-repudiability<br>
<br>
iEYEARECAAYFAlh0I9wACgkQuRKJsN<wbr>LM5erWdQCgohmGdSVT2s1DHEWs+3+<wbr>I3BCn<br>
nR4AoM8TVyt53lC3KhHC6uecvy09Zq<wbr>9z<br>
=Af5d<br>
-----END PGP SIGNATURE-----<br>
<div class="elided-text">---<br>
Talk Mailing List<br>
<a href="mailto:talk@gtalug.org">talk@gtalug.org</a><br>
<a href="https://gtalug.org/mailman/listinfo/talk" rel="noreferrer" target="_blank">https://gtalug.org/mailman/<wbr>listinfo/talk</a><br>
</div></blockquote></div><br></div></div></div>