mirror of
https://github.com/envmodules/modules.git
synced 2026-06-03 00:33:18 +08:00
According to ShellCheck's documentation: In the original code, the return value of mycmd in $(mycmd) is ignored, and export will instead always return true. This may prevent conditionals, set -e and traps from working correctly. Related: https://www.shellcheck.net/wiki/SC2155 Related: #470
6 lines
114 B
Bash
6 lines
114 B
Bash
#!/bin/bash
|
|
export FOOENV="$1"
|
|
PATH=$(dirname "${BASH_SOURCE[0]}")/bin:$PATH
|
|
export PATH
|
|
alias foo='foobin -q -l'
|