Index of Section 1 Manual Pages

Interix / SUAenv.1Interix / SUA

ENV(1)                  System General Commands Manual                  ENV(1)

NAME
     env - set and print environment

SYNOPSIS
     env [-i | -c username | -l username | -w username] [-u name]
         [name=value ...] [utility [argument ...]]

DESCRIPTION
     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.

     -c username
             Replace the existing environment with the default cron(1) login
             environment for the user username.

     -l username
             Replace the existing environment with the default Interix login
             environment for the user username.

     -u name
             Unset the environment variable name.

     -w username
             Replace the existing environment with the default Windows login
             environment for the user username.

     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
     If the utility is invoked, the exit status of env shall be the exit sta-
     tus of utility; otherwise, the env utility exits with one of the follow-
     ing 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
     execvp(3), env_cron(3), env_login(3), env_winlogin(3), unsetenv(3),
     sh(1), tcsh(1)

STANDARDS
     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'').

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

     The options -c, -l, -u, and -w are non-portable extensions on Interix
     only and should not be used with portable scripts.

     The -u option is processed in the order placed on the command line in
     relation to the other options. This means if you use -u after the -c
     option then that environment variable will be unset if it had been set as
     the cron environment. If -u had been place before -c then the environment
     variable will be cleared before possibly being set as the cron environ-
     ment.

Interix                          Aug 12, 2009                          Interix

Interix / SUAHosted at SUA Community for Interix, SUA and SFUInterix / SUA