1*92b8e9acSThomas Cort.\" $NetBSD: printenv.1,v 1.7 2003/08/07 11:15:31 agc Exp $ 2*92b8e9acSThomas Cort.\" 3*92b8e9acSThomas Cort.\" Copyright (c) 1980, 1990, 1993 4*92b8e9acSThomas Cort.\" The Regents of the University of California. All rights reserved. 5*92b8e9acSThomas Cort.\" 6*92b8e9acSThomas Cort.\" This code is derived from software contributed to Berkeley by 7*92b8e9acSThomas Cort.\" the Institute of Electrical and Electronics Engineers, Inc. 8*92b8e9acSThomas Cort.\" Redistribution and use in source and binary forms, with or without 9*92b8e9acSThomas Cort.\" modification, are permitted provided that the following conditions 10*92b8e9acSThomas Cort.\" are met: 11*92b8e9acSThomas Cort.\" 1. Redistributions of source code must retain the above copyright 12*92b8e9acSThomas Cort.\" notice, this list of conditions and the following disclaimer. 13*92b8e9acSThomas Cort.\" 2. Redistributions in binary form must reproduce the above copyright 14*92b8e9acSThomas Cort.\" notice, this list of conditions and the following disclaimer in the 15*92b8e9acSThomas Cort.\" documentation and/or other materials provided with the distribution. 16*92b8e9acSThomas Cort.\" 3. Neither the name of the University nor the names of its contributors 17*92b8e9acSThomas Cort.\" may be used to endorse or promote products derived from this software 18*92b8e9acSThomas Cort.\" without specific prior written permission. 19*92b8e9acSThomas Cort.\" 20*92b8e9acSThomas Cort.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21*92b8e9acSThomas Cort.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22*92b8e9acSThomas Cort.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23*92b8e9acSThomas Cort.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24*92b8e9acSThomas Cort.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25*92b8e9acSThomas Cort.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26*92b8e9acSThomas Cort.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27*92b8e9acSThomas Cort.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28*92b8e9acSThomas Cort.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29*92b8e9acSThomas Cort.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30*92b8e9acSThomas Cort.\" SUCH DAMAGE. 31*92b8e9acSThomas Cort.\" 32*92b8e9acSThomas Cort.\" from: @(#)printenv.1 8.1 (Berkeley) 6/6/93 33*92b8e9acSThomas Cort.\" $NetBSD: printenv.1,v 1.7 2003/08/07 11:15:31 agc Exp $ 34*92b8e9acSThomas Cort.\" 35*92b8e9acSThomas Cort.Dd June 6, 1993 36*92b8e9acSThomas Cort.Dt PRINTENV 1 37*92b8e9acSThomas Cort.Os 38*92b8e9acSThomas Cort.Sh NAME 39*92b8e9acSThomas Cort.Nm printenv 40*92b8e9acSThomas Cort.Nd print out the environment 41*92b8e9acSThomas Cort.Sh SYNOPSIS 42*92b8e9acSThomas Cort.Nm 43*92b8e9acSThomas Cort.Op Ar name 44*92b8e9acSThomas Cort.Sh DESCRIPTION 45*92b8e9acSThomas Cort.Nm 46*92b8e9acSThomas Cortprints out the names and values of the variables in the environment, 47*92b8e9acSThomas Cortwith one name/value pair per line. 48*92b8e9acSThomas CortIf 49*92b8e9acSThomas Cort.Ar name 50*92b8e9acSThomas Cortis specified, only 51*92b8e9acSThomas Cortits value is printed. 52*92b8e9acSThomas Cort.Pp 53*92b8e9acSThomas CortIf a 54*92b8e9acSThomas Cort.Ar name 55*92b8e9acSThomas Cortis specified and it is not defined in the environment, 56*92b8e9acSThomas Cort.Nm 57*92b8e9acSThomas Cortreturns exit status 1, else it returns status 0. 58*92b8e9acSThomas Cort.Sh SEE ALSO 59*92b8e9acSThomas Cort.Xr csh 1 , 60*92b8e9acSThomas Cort.Xr sh 1 , 61*92b8e9acSThomas Cort.Xr environ 7 62*92b8e9acSThomas Cort.Sh HISTORY 63*92b8e9acSThomas CortThe 64*92b8e9acSThomas Cort.Nm 65*92b8e9acSThomas Cortcommand appeared in 66*92b8e9acSThomas Cort.Bx 3.0 . 67