Support dash init shell with Lmod approach, make sure second initialsation gives expected EESSI version#182
Conversation
…sation gives expected EESSI version
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
New job on instance
|
|
New job on instance
|
|
Does our CI cover all these shells? |
No, but they are to Ubuntu and in Lmod init dir it is called
Yes |
| . assert.sh/assert.sh | ||
|
|
||
| TEST_SHELLS=("bash" "zsh" "fish" "ksh" "csh") | ||
| TEST_SHELLS=("bash" "zsh" "fish" "ksh" "csh" "sh") |
There was a problem hiding this comment.
@boegel All shells are covered via this script
| @@ -1,4 +1,4 @@ | |||
| #!/usr/bin/env bash | |||
| #!/usr/bin/env sh | |||
There was a problem hiding this comment.
This script is meant to be sourced, so the shebang here is meaningless
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
New job on instance
|
|
New job on instance
|
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
New job on instance
|
|
New job on instance
|
Co-authored-by: ocaisa <alan.ocais@cecam.org>
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
New job on instance
|
|
New job on instance
|
casparvl
left a comment
There was a problem hiding this comment.
I think it's confusing that the actual POSIX compliant script is now init/lmod/bash. I'd say init/lmod/sh should be the POSIX compliant script, and all POSIX compliant shells (bash/ksh/zsh) should symlink to that. Keeping the actual script in init/lmod/bash is confusing, since someone may add bash syntax later (the only thing telling them not to is the shebang - but you can see how it may be confusing if the script is called bash). If it's init/lmod/sh, it is immediately clear that this is POSIX compliant and shouldn't contain any shell-specific syntax.
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
New job on instance
|
|
New job on instance
|
|
CI checks aren't checking if these scripts are up-to-date, so I might as well merge this right now - even though the S0 is actually still ingesting things... |
Also make BASH, ZSH, KSH posix compliant so they just be symlinks (and we can then support
dash)Fixes #178