Comment Comment by periodontal For bash, add quotes: "${cmd[@]}"Otherwise, you'll get word splitting. E.g., cmd=( test "!= !=" != "" ) "${cmd[@]}" && echo Success ${cmd[@]} || echo Failure parent periodontal 6 years ago
Otherwise, you'll get word splitting. E.g.,