mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
Some variables, that were unquoted intentionally were converted to arrays. According to ShellCheck's documentation: Quoting variables prevents word splitting and glob expansion, and prevents the script from breaking when input contains spaces, line feeds, glob characters and such. Related: https://www.shellcheck.net/wiki/SC2086 Related: #470
23 lines
510 B
Bash
23 lines
510 B
Bash
#!/bin/bash
|
|
|
|
source "$MOD_GIT_ROOTDIR"/doc/example/compiler-etc-dependencies/example-sessions/common_code.sh
|
|
|
|
do_cmd module purge
|
|
do_cmd module load pgi/18.4
|
|
do_cmd module load openmpi/3.1
|
|
do_cmd module load foo/1.1
|
|
do_cmd module list
|
|
do_cmd foo
|
|
do_cmd module switch "$AUTOFLAG" pgi intel/2018
|
|
do_cmd module list
|
|
do_cmd foo
|
|
do_cmd mpirun
|
|
do_cmd module purge
|
|
do_cmd module load intel/2019
|
|
do_cmd module load foo
|
|
do_cmd module list
|
|
do_cmd foo
|
|
do_cmd module load "$AUTOFLAG" openmpi
|
|
do_cmd module list
|
|
do_cmd foo
|