Expand shell-style variable substitution
Currently it works for flat input (1-depth) only and returns the result
split by a given IFS string (defaults to " \t\n").
constvars={TEST: '$TEST $TEST'};console.log(shellExpand('${TEST}',vars,{IFS: ' '}));// ["$TEST", "$TEST"]