On 04.03.2012 14:08, Andreas Vogel wrote:
Hi all,
This tiny patch makes exported variables really global. Right now
exported variables are set in the context of a submenu when running it.
But any changes to those vars are lost when leaving the submenu. This
patch sets and exports all vars in the calling context for the submenu
which are exported in the context of the submenu.
We follow the bash behaviour. And the bash behaviour is exactly what
GRUB does:
phcoder@debian.x201.phnet:14:15:11:~/grub2/bzr/mainline$ bash
phcoder@debian.x201.phnet:14:15:15:~/grub2/bzr/mainline$ export XYZ=x
phcoder@debian.x201.phnet:14:15:19:~/grub2/bzr/mainline$ exit
phcoder@debian.x201.phnet:14:15:20:~/grub2/bzr/mainline$ echo $XYZ
phcoder@debian.x201.phnet:14:15:24:~/grub2/bzr/mainline$
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel