runDiags() { ( get_system_info get_cpu_info # ... many functions ) & show_progress $!
Issue: Unnecessary subshell. Functions already output to stdout. Better to redirect output once:
{ get_system_info get_cpu_info # ... } 2>&1 | tee -a "$LOGFILE" & show_progress $!
No dependencies set.
The note is not visible to the blocked user.
runDiags() {
(
get_system_info
get_cpu_info
# ... many functions
) & show_progress $!
Issue: Unnecessary subshell. Functions already output to stdout. Better to redirect output once:
{
get_system_info
get_cpu_info
# ...
} 2>&1 | tee -a "$LOGFILE" &
show_progress $!