[Fix] `nvm alias`: do not drop output from background jobs on bash 3.2
Before adoption: this commit came in with the history the project adopted, so no landing records it.
bash 3.2 (macOS `/bin/bash` and `/bin/sh`) exec-optimizes a trailing `command` call inside a function run as a background job, which silently drops the output of nested command substitutions; in `nvm alias` that lost installed-alias colors and some default aliases, Running each job in an explicit subshell avoids it.
authored by Jordan Harband · committed by Jordan Harband · parent 0add6b8 · Browse files · 1 file+6 added−5 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+6 added−5 removed
- other:+6 added−5 removed