envstore

Langue: en

Version: 336314 (ubuntu - 24/10/10)

Section: 1 (Commandes utilisateur)


BSD mandoc

NAME

envstore - save and restore environment variables

SYNOPSIS

command [args ... ]

DESCRIPTION

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
save variable [value ]
Save variable either with its current shell value or with value
rm variable
Remove variable from store

Note: Only the first character of command is checked, so e instead of eval c for clear etc., are also valid.

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

AUTHOR

was written by An Daniel Friesel Aq derf@derf.homelinux.org .

Original idea and script by An Maximilian Gass Aq mxey@ghosthacking.net .

SEE ALSO

envify(1)