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
|