summaryrefslogtreecommitdiff
path: root/printenv
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-07-19 12:08:45 -0400
committerJakob Kaivo <jkk@ung.org>2019-07-19 12:08:45 -0400
commit3344cdf0010271c43279dd99a9df151017dc1fff (patch)
treec99b13905233c79a7f92277d7fe8196ff37546f2 /printenv
initial commit
Diffstat (limited to 'printenv')
-rwxr-xr-xprintenv7
1 files changed, 7 insertions, 0 deletions
diff --git a/printenv b/printenv
new file mode 100755
index 0000000..1ec574a
--- /dev/null
+++ b/printenv
@@ -0,0 +1,7 @@
+if [ -n "$*" ]; then
+ for i in $*; do
+ printf '%s=%s\n' "${i}" "${$i}"
+ done
+else
+ env
+fi