mirror of
https://github.com/envmodules/modules.git
synced 2026-06-18 00:06:53 +08:00
When producing code to output shell alias definition, escaping of special characters was missing until now in renderSettings procedure. Code to bake shell alias has been fixed to work in a similar way than for environment variable with full range of shell special characters escaped. Translation of $n/$* in !!:n/!* on csh-like shells is maintained for compatibility with v3. To improve this compatibility, a \ prior to $ disables translation on csh (like with v3), then after \$ is translated in $ for all shells. Adapt testsuite to use value escaping over expected output result for shell alias (like done for environment variable). Adapt consequently all shell alias tests in 50-cmds/07*. Add test in 50-cmds/076-alias-sub to demonstrate escaping of complex shell alias. Use modulefile from this new test within install testsuite to garanty shell alias produce is effective on shell sessions. Check availability of tools used by this alias (grep, tr, awk) to determine if install test can be launched on current system. Fixes #165