I see two different ways of adding path in Linux. For example,
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export PATH=/usr/local/cuda/bin:$PATH
While I am clearly aware of the second way, what is first way doing? What are the advantages over the second?