Why standard check aws --version
prints the expected output to the stderr, not stdout?
$ aws --version 2>err.log
$ cat err.log
aws-cli/1.11.65 Python/2.7.13 Darwin/16.5.0 botocore/1.5.28
$ aws --version > out.log
aws-cli/1.11.65 Python/2.7.13 Darwin/16.5.0 botocore/1.5.28
$ cat out.log
$
It would make sense to write the result into stdout if command completed successfully. Other commands like aws ec2 describe-images
or aws ec2 describe-instances
write the output to the stdout correctly.
Checked on CentOS and MacOS.