I will add for v5.1 a new state named 'supported_shells' and a state
sub-command to report current state value:
$ module state supported_shells
Modules Release 5.0.0+17-gbbab6f4a (2021-10-13)
- State name -----------.- Value ----------------------------------------------
supported_shells sh bash ksh zsh csh tcsh fish cmd tcl perl
python ruby lisp cmake r
See https://github.com/cea-hpc/modules/issues/426
Xavier
Le ven. 15 oct. 2021 à 17:43, Xav...@CE...
<Xav...@ce...> a écrit :
>
> RedHat has moved to Modules 4 for EL8, and if everything goes as
> expected Modules 5 should be part of EL9.
>
> openSUSE Leap is still relying on Modules 3.2, but openSUSE
> Tumbleweed has version 4.8.
>
> The repology website is really helpful to learn how Modules is
> available across OSes:
>
> https://repology.org/project/environment-modules/versions
>
> Globally the new Modules versions are available on recent OS
> releases.
>
> Xavier
>
>
> On Fri, 2021-10-15 at 10:28 -0500, Paul Markfort wrote:
> > That works (the profile.d stuff should still be put together).
> >
> > Maybe add a psuedo shell, "list-all-shells"
> > Output is the list of shells in a machine parse-able format (so the
> > output could be used in shells). Or that could be the output
> > returned if there are no arguments.
> >
> >
> > Now we have to figure out why Redhat and SUSE both seem to be stuck
> > on modules 3.2.10
> >
> > If it is a (perceived) performance issue, perhaps you need to bring
> > back a binary version - in the form of the modulecmd.tcl command is
> > compiled into modulecmd.bin (in the libexec folder) - or include
> > instructions on how to do that.
> > There are good reasons why most people would want to use the tcl
> > script (cross platform compatibility) while others may want a
> > binary (performance).
> >
> >
> >
> > On 10/15/2021 12:11 AM, Xavier Delaruelle wrote:
> > > Hi Paul,
> > >
> > > Current organization of the init directory already gives a good
> > > insight of the shells that are supported. Except for the profile
> > > scripts, the first word of each file designates the shell.
> > > Splitting
> > > things with more directories will make it harder to get a full
> > > overview. Also such change is a major one and v5.0 is still new
> > > so
> > > such file movement cannot happen before 6.0.
> > >
> > > What could be done instead is to list the supported shells when
> > > no
> > > shell or an unsupported shell is set on $MODULES_CMD :
> > >
> > > $ $MODULES_CMD
> > > ERROR: Unknown shell type ''
> > > Supported shells are: sh, bash, ksh, zsh, csh, tcsh, fish,
> > > cmd, tcl, perl,
> > > python, ruby, lisp, cmake and r
> > >
> > > Regards,
> > > Xavier
> > >
> > > Le jeu. 14 oct. 2021 à 17:50, Paul Markfort <pau...@gm...>
> > > a écrit :
> > > >
> > > >
> > > > Xavier,
> > > >
> > > > May I suggest a slight reorganization of the
> > > > "modules/{version}/init" folder.
> > > >
> > > > I note that the contents of this folder, is the easiest way to
> > > > get a list of shells that a particular version of modules
> > > > supports.
> > > >
> > > >
> > > > First (and probably important), move profile.csh and profile.sh
> > > > to a subfolder profile.d (and rename them modules.*).
> > > > This will make them easier to find and just use these by
> > > > copying them to /etc/profile.d/
> > > > (I also suggest you put a test in those scripts that they are
> > > > effectively noop if the user is root).
> > > >
> > > > Next, rename the *_* and *-* files and folders to *.* - adding
> > > > a .d to the folders (tcsh.completion, zsh.functions.d ) - or
> > > > create a subfolder (maybe auxiliary.d, misc.d, or extra.d) for
> > > > all of them. This part will make it easier to use the list of
> > > > files to determine what shells modules supports (both by sight,
> > > > and particularly in scripts).
> > > >
> > > >
> > > > Thanks.
> > > >
> > > >
> > > > --
> > > > --------------------------------------------------------
> > > > The views and opinions expressed above are strictly
> > > > those of the author(s). The content of this message has
> > > > not been reviewed nor approved by any entity whatsoever.
> > > > --------------------------------------------------------
> > > > Paul FM Info: http://paulfm.com/~paulfm/
> > > > --------------------------------------------------------
> > > >
> > > >
> > > > _______________________________________________
> > > > Modules-interest mailing list
> > > > Mod...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/modules-interest
> > >
> > >
> > > _______________________________________________
> > > Modules-interest mailing list
> > > Mod...@li...
> > > https://lists.sourceforge.net/lists/listinfo/modules-interest
> > >
> >
> >
>
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
|