ENV(1)                                                     ENV(1)

     NAME
          env, getenv, setenv - environment routines

     SYNOPSIS
          env

          getenv varname

          setenv varname [ value ]

     DESCRIPTION
          The env command prints out the current process's environment
          as a list of variables and their current values.

          The getenv command prints out the current value of the vari-
          able whose name is given as the argument varname . If the
          variable is not set, a blank line is output.

          The setenv command sets the value of the variable whose name
          is given as the argument varname to value when the latter is
          provided on the command line. If no second argument is given
          the effect is to unset the variable. In both cases, if the
          variable is set originally, that value will be replaced by
          the new one.

     SOURCE
          /appl/cmd/env.b
          /appl/cmd/getenv.b
          /appl/cmd/setenv.b

     SEE ALSO
          acme(1), sh(1), env(2)

     BUGS
          Env does not understand that environment variables as stored
          by sh(1) are lists.

     Page 1                       Plan 9            (printed 11/17/24)