aboutsummaryrefslogtreecommitdiffstats
path: root/support/printenv
diff options
context:
space:
mode:
Diffstat (limited to 'support/printenv')
-rwxr-xr-xsupport/printenv11
1 files changed, 11 insertions, 0 deletions
diff --git a/support/printenv b/support/printenv
new file mode 100755
index 0000000..8aebd43
--- /dev/null
+++ b/support/printenv
@@ -0,0 +1,11 @@
+#! /bin/sh -
+
+if [ $# -eq 0 ]; then
+ env
+ exit
+elif eval [ "\${$1-unset}" = "unset" ]; then
+ exit 1
+else
+ eval echo \$$1
+ exit 0
+fi