The project I'm working on right now contains the same idiom again and again:
local cur_ts= ; cur_ts=$( date +%s )
They do it only for variables which values are calculated via $()
.
local name=$1
local value=$2
local pair="$name => $value"
local server= ; server=$( hostname )
Looks like it makes some sense, at least according to the previous author. What is it?