On Tuesday 30 November 2004 00:02, debian-user-digest-request@lists.debian.org
wrote:
> function savevars()
> {
> for var in "$@" ; do
> eval "echo $var=\\\"\$$var\\\""
> done
> }
>
>
> Just call it like:
> savevars VAR1 VAR2 VAR3 >file
>
> then load the vars with:
> source ./file
Worth a try. Maybe only saving the few I really need will work. As I said, the
source line accesses the file but then the script aborts.