Re: SV: compatibility issue in environment-modules version 4.1.1-1
On 2019-05-13 09:22, Gösta Ljungdahl wrote: -Ursprungligt meddelande- Från: Gunnar Hjalmarsson [mailto:gunna...@ubuntu.com] Ämne: Re: compatibility issue in environment-modules version 4.1.1-1 When reading that I think: If variables are defined at initialization, which are needed later on, why not simply turn them from pure shell variables to environment variables by export'ing them? That would be a change of the environment-modules code which ought to be doable. I'm not sure I understand what you mean. The environment variables and shell functions that the initialization defines are exported with the intent of making them available to the environment. Dash when later called upon accepts the exported variables but washes the exported shell functions out as I understand it at this point. Ok, if the program relies on exported functions, I understand better. https://stackoverflow.com/questions/29239806/how-to-export-a-function-in-bourne-shell -- Gunnar Hjalmarsson https://launchpad.net/~gunnarhj -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
Re: SV: compatibility issue in environment-modules version 4.1.1-1
On 2019-05-08 14:07, Gösta Ljungdahl wrote: Hi, Gunnar, Tested editing /etc/profile.d/modules.sh to source /usr/share/modules/init/bash by default i.e. commented out the line . /usr/share/modules/init/sh and put in . /usr/share/modules/init/bash but it was not sufficient. Apparently dash comes in at a later stage. So it seems. There are probably a couple of pitfalls built-in in that program. Thanks for bringing the issue to the upstream maintainer! It would be great if you could get back here and let us know the outcome of the discussion/tests. -- Gunnar Hjalmarsson https://launchpad.net/~gunnarhj -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
Re: SV: compatibility issue in environment-modules version 4.1.1-1
On 2019-05-06 09:36, Gösta Ljungdahl wrote: On 2019-05-05 22:35, Gunnar Hjalmarsson wrote: From a quick look at the code in environment-modules I see that it seems to test for the BASH_VERSION variable. That makes me think of this change of LightDM: https://bazaar.launchpad.net/~lightdm-team/lightdm/trunk/revision/2168/debian/lightdm-session which was made in response to: https://launchpad.net/bugs/1482641 Can this possibly be a reason for the confusion you have observed? > All I really know is that at some point in the initialization process dash comes into play and is not equal to the task. I know this because the initialization works as expected if I change /bin/sh to point to /bin/bash. Right. But it could be useful to know what happens if you 1. Change the /bin/sh symlink back to point to dash, and 2. (assuming that MINT uses LightDM) edit /usr/sbin/lightdm-session and change the line BASH_VERSION= . "$CONFIG_FILE" 2>"$ERR" to . "$CONFIG_FILE" 2>"$ERR" -- Gunnar Hjalmarsson https://launchpad.net/~gunnarhj -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss