i-bash/support/printenv.sh

28 lines
848 B
Bash
Raw Normal View History

1996-08-26 18:22:31 +00:00
#! /bin/sh -
2002-07-17 14:10:11 +00:00
# Copyright (C) 1996-2002 Free Software Foundation, Inc.
#
2009-01-12 13:36:28 +00:00
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
2002-07-17 14:10:11 +00:00
#
2009-01-12 13:36:28 +00:00
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2002-07-17 14:10:11 +00:00
#
1996-08-26 18:22:31 +00:00
if [ $# -eq 0 ]; then
env
exit
elif eval [ "\${$1-unset}" = "unset" ]; then
exit 1
else
eval echo \$$1
exit 0
fi