3 ms·A portable way to test if the variable is set: test -n "${VAR+x}"by jwilk 6y agoA portable way to test if the variable is set: test -n "${VAR+x}"