mirror of
https://github.com/envmodules/modules.git
synced 2026-05-30 00:12:31 +08:00
According to ShellCheck's documentation:
Use "$@" (with quotes) to prevent whitespace problems. $* and ${array[*]},
unquoted, is subject to word splitting and globbing.
Related: https://www.shellcheck.net/wiki/SC2048
Related: #470
6 lines
127 B
Bash
Executable File
6 lines
127 B
Bash
Executable File
#!/bin/sh
|
|
# fake Windows cmd.exe command execution
|
|
shift 1
|
|
# shellcheck disable=2048 # word expansion from string expected
|
|
$*
|