summaryrefslogtreecommitdiff
path: root/printenv
diff options
context:
space:
mode:
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