[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#558684: ITP: envstore -- save and restore environment variables

Hi all,

Do April Fools' Day occur in November in some part of the world?

On Sun, 2009-11-29 at 21:01 +0100, Maximilian Gass wrote:
> Package: wnpp
> * Package name    : envstore
>   Version         : 2.0
>   Upstream Author : Daniel Friesel <derf@derf.homelinux.org>
> * URL             : https://derf.homelinux.org/~derf/projects/envstore/
> * License         : WTFPL


Please Sam, drop your F* webpage. The [Open-Source] world don't need yet
another license. Or make it clear that no one should actually use it.

>   Description     : save and restore environment variables
> envstore allows you to save environment variables into a seperate store, list
> them, and reload them into the shell again.

In most situation, this packaged can be replaced with:

echo $FOO > ~/.var_FOO
FOO=$(cat ~/.var_FOO)

In some exceptional situation, where the variable variables and escape
code should be preserved, one can use:
export | grep " PS4=" > ~/.var_FOO
. ~/.var_FOO

(No, it isn't guaranteed to be portable, and there might even be easier
ways to achieve all this).

I wonder how Unix could survive 30 years without such command.


Reply to: