commit | 7250fb69686b4c0131e4cef3904003fb1124851e | [log] [tgz] |
---|---|---|
author | Mattias Andrée <maandree@kth.se> | Wed Mar 30 01:16:27 2016 +0200 |
committer | sin <sin@2f30.org> | Wed Apr 20 22:57:40 2016 +0100 |
tree | 48a2584696ad3022ed0ca32888647d2b65555531 | |
parent | dfc94e0221c0b830e49800e25e15c4ccad281b2c [diff] |
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>