local base=
is equivalent to
local base
They both set a local variable with null content. Try
$ eqls () { local eq=; echo ${eq:+ColPlus}; echo ${eq+Plus}; }
$ eqls
Plus
$
$ eqls () { local eq; echo ${eq:+ColPlus}; echo ${eq+Plus}; }
Plus
$
${var:+word} resolves to nothing if the variable "var" is
I am going through the /etc/init.d/functions and have some questions about
some of the syntax.
I'm relatively new to bash so any help would be appreciated.
I know what the local designator does;
however in the assignment statement
local base= user= nice= pid
I'm not sure what is happening in term