i-bash/support/printenv

12 lines
132 B
Text
Raw Normal View History

1996-08-26 18:22:31 +00:00
#! /bin/sh -
if [ $# -eq 0 ]; then
env
exit
elif eval [ "\${$1-unset}" = "unset" ]; then
exit 1
else
eval echo \$$1
exit 0
fi