*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> env (1)              
Title
Content
Arch
Section
 

ENV(1)

Contents


NAME    [Toc]    [Back]

     env - set and print environment

SYNOPSIS    [Toc]    [Back]

     env [-i] [name=value ...] [utility [argument ...]]

DESCRIPTION    [Toc]    [Back]

     env executes utility  after  modifying  the  environment  as
specified on the
     command  line.   The option name=value specifies an environment variable,
     name, with a value of value.

     The options are as follows:

     -i      Causes env to completely ignore the  environment  it
inherits.

     If  no  utility  is  specified, env prints out the names and
values of the
     variables in the environment, with one name=value  pair  per
line.

DIAGNOSTICS    [Toc]    [Back]

     If  the  utility is invoked, the exit status of env shall be
the exit status
 of utility; otherwise, the env utility exits with one of
the following
 values:

     0       The env utility completed successfully.

     1-125   The exit code returned from the utility.

     126      The  utility  specified  by  utility was found, but
could not be invoked.


     127     The utility specified by utility could not be found.

SEE ALSO    [Toc]    [Back]

      
      
     execvp(3), environ(7)

STANDARDS    [Toc]    [Back]

     The  historic - option has been deprecated but is still supported in this
     implementation.

     The  env  utility   conforms   to   IEEE   Std   1003.2-1992
(``POSIX.2'').

BUGS    [Toc]    [Back]

     env  doesn't handle commands with equal (`=') signs in their
names, for
     obvious reasons.

OpenBSD     3.6                         August      27,      1993
[ Back ]
 Similar pages
Name OS Title
env IRIX set environment for command execution, print environment
printenv FreeBSD print out the environment
printenv OpenBSD print out the environment
printenv HP-UX print out the environment
printenv Linux print all or part of environment
userenv IRIX print user's login environment
env Tru64 Displays or sets the current environment, or displays the values of environment variables
printenv Tru64 Displays or sets the current environment, or displays the values of environment variables
DXmPrintWgtAugmentList Tru64 Defines additional print formats and lets you add new options to the print widget option menus.
getenv IRIX return value for environment name
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service