logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

envstore — save and restore environment variables

Author

envstore was written by Daniel Friesel <derf@derf.homelinux.org>.

       Original idea and script by Maximilian Gass <mxey@ghosthacking.net>.

Description

envstore can save and restore environment variables, thus transferring them between different shells.

       command must be one of

       clear
           Forget all stored variables

       eval
           Produce shell code for evaluation, restoring all saved variables

       list
           List saved variables in better readable format

       savevariable [value]
           Save variable either with its current shell value or with valuermvariable
           Remove variable from store

       Note:  Only the first character of command is checked, so envstoree instead of envstoreeval, envstorec
       for envstoreclear, etc., are also valid.

       For convenience, the options --version and --help are also supported.

Environment

       ENVSTORE_FILE  The file in which the environment parameters are stored, /tmp/envstore-EUID by default,

Limitations

       Variable names or values must not contain null bytes or newlines.

       Due to limitations imposed by most shells, it is not possible to save parameters containing more than one
       consecutive whitespace.  envstore will save and display them correctly, but unless you do  IFS  trickery,
       your shell will not be able to load them.

       The current maximum length (in bytes) is 255 bytes for the variable name and 1023 bytes for its content.

Name

       envstore — save and restore environment variables

See Also

envify(1)

Debian                                          December 1, 2009                                     ENVSTORE(1)

Synopsis

envstorecommand [args...]

See Also