| 1 |
#%Module1.0 |
| 2 |
|
| 3 |
############################################################################## |
| 4 |
# Modules Revision 3.0 |
| 5 |
# Providing a flexible user environment |
| 6 |
# |
| 7 |
# File: function/%M% |
| 8 |
# Revision: %I% |
| 9 |
# First Edition: 2018/10/14 |
| 10 |
# Last Mod.: %U%, %G% |
| 11 |
# |
| 12 |
# Authors: nanobowers <[email protected]> |
| 13 |
# |
| 14 |
# Description: Testsuite modulefile |
| 15 |
# Command: |
| 16 |
# Sub-Command: set-function |
| 17 |
# |
| 18 |
# Comment: %C{ |
| 19 |
# Check how special characters in function definition are handled |
| 20 |
# }C% |
| 21 |
# |
| 22 |
############################################################################## |
| 23 |
|
| 24 |
switch -- [module-info shelltype] { |
| 25 |
{sh} { |
| 26 |
set-function testsuite {echo $(grep "report .Modules " modulecmd.tcl | tr -d \\ | awk '{print $3}'); echo $1} |
| 27 |
} |
| 28 |
{fish} { |
| 29 |
set-function testsuite {echo (grep "report .Modules " modulecmd.tcl | tr -d \\ | awk '{print $3}'); echo $argv[1]} |
| 30 |
} |
| 31 |
{pwsh} { |
| 32 |
set-function testsuite {echo (grep "report .Modules " modulecmd.tcl | tr -d \\ | awk '{print $3}'); echo $argv[1]} |
| 33 |
} |
| 34 |
} |
| 35 |
|