On Wed, Jun 24, 2020 at 08:23:18PM +0200, Roger Price wrote: > On Wed, 24 Jun 2020, Greg Wooledge wrote: > > > > MEDIADIR=`pwd` > > > > Don't use all caps variable names. > > Without getting into syntax-religious wars, what is the reasoning behind > this recommendation? Roger
All-caps names are reserved for environment variables (HOME, PATH), and internal shell variables (IFS, PWD, HISTFILE). Avoiding all-caps names allows you to avoid collisions with a variable name that might be used for something else. Most of the time. This being the Unix shell, there are *always* stupid exceptions (http_proxy and friends on the environment side, and auto_resume and histchars in bash).