printenv: exit status is 2 on failure
This provides a reliable and portable way to test whether an environment variable is defined. (Of course, if you are using glibc you may get false positives if you include a = in the query.) Signed-off-by: Mattias Andrée <maandree@kth.se>master
parent
dfc94e0221
commit
7250fb6968
Loading…
Reference in New Issue