Redirecting command output to a variable in bash fails Redirecting command output to a variable in bash fails shell shell