table of contents
| ENVSTORE(1) | General Commands Manual | ENVSTORE(1) |
NAME¶
envstore—save and
restore environment variables
SYNOPSIS¶
envstore |
command[args...] |
DESCRIPTION¶
envstorecan save and restore environment
variables, thus transferring them betweendifferent shells.
commandmust 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]- Savevariableeither with its current shell value or withvalue
rmvariable- Removevariablefrom store
Note: Only the first character ofcommandis
checked, soenvstoreeinstead
ofenvstoreeval,envstorecforenvstoreclear,etc.,
are also valid.
For convenience, the
options--versionand--helpare
also supported.
ENVIRONMENT¶
ENVSTORE_FILE- The file in which the environment parameters are stored,/tmp/envstore-EUIDby 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
saveparameters containing more than one consecutive
whitespace.envstorewill save and display them
correctly, but unless you doIFStrickery, your shell
will not be able to load them.
The current maximum length (in bytes) is 255 bytes for the variable nameand 1023 bytes for its content.
AUTHOR¶
envstorewas written by
Daniel
Friesel⟨derf@derf.homelinux.org⟩.
Original idea and script by
Maximilian
Gass⟨mxey@ghosthacking.net⟩.
SEE ALSO¶
| December 1, 2009 | Debian |