what does mean +set

Hi, I have a question
what does mean +set in the next line
if test "${lt_cv_path_SED+set}" = set; then

thanks

:frowning:

Lookup bash parameter expansion. Here is a url:

BashFAQ/083 - Greg's Wiki

The string test is avoiding a syntax error if the environment variable ${lt_cv_path_SED} is blank. It's too easy to write code which the next person cannot follow.

Imho it would be better as:

if test "${lt_cv_path_SED+set}" = "set"; then

Or even better as:

if [ "${lt_cv_path_SED}""set" = "set" ]; then